-
Notifications
You must be signed in to change notification settings - Fork 419
95 lines (93 loc) · 2.68 KB
/
compatibility-phoenix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: "Compatibility: Phoenix"
on:
push:
branches:
- master
- release/*
jobs:
test_on_source:
runs-on: ubuntu-20.04
name: "[${{matrix.otp}}/${{matrix.elixir}}] Phoenix ${{matrix.repo_branch}} source code analysed by Credo [OTP/Elixir]"
strategy:
fail-fast: false
matrix:
repo_url: ["https://github.com/phoenixframework/phoenix.git"]
repo_branch: ["v1.6", "main"]
otp: [23.3, 24.3, 25.3, 26.1]
elixir: [1.11.4, 1.12.3, 1.13.4, 1.14.5, 1.15.7, 1.16.0]
exclude:
- elixir: 1.11.4
otp: 26.1
- elixir: 1.12.3
otp: 26.1
- elixir: 1.13.4
otp: 26.1
- elixir: 1.14.5
otp: 26.1
- elixir: 1.11.4
otp: 25.3
- elixir: 1.12.3
otp: 25.3
- elixir: 1.14.5
otp: 25.3
- elixir: 1.15.7
otp: 23.3
- elixir: 1.15.7
otp: 24.3
- elixir: 1.16.0
otp: 23.3
- elixir: 1.16.0
otp: 24.3
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix deps.compile
- run: mix compile
- run: mkdir -p tmp
- run: git clone ${{matrix.repo_url}} tmp/${{matrix.repo_branch}} --depth=1 --branch ${{matrix.repo_branch}}
- run: mix credo tmp/${{matrix.repo_branch}} --strict --mute-exit-status
test_on_new_project:
runs-on: ubuntu-20.04
name: "[${{matrix.otp}}/${{matrix.elixir}}] new Phoenix app analysed by Credo [OTP/Elixir]"
strategy:
matrix:
otp: [23.3, 24.3, 25.3, 26.1]
# phx_new depends on newer versions of Elixir than Credo
elixir: [1.14.5, 1.15.7, 1.16.0]
exclude:
- elixir: 1.11.4
otp: 26.1
- elixir: 1.12.3
otp: 26.1
- elixir: 1.13.4
otp: 26.1
- elixir: 1.14.5
otp: 26.1
- elixir: 1.11.4
otp: 25.3
- elixir: 1.12.3
otp: 25.3
- elixir: 1.14.5
otp: 25.3
- elixir: 1.15.7
otp: 23.3
- elixir: 1.15.7
otp: 24.3
- elixir: 1.16.0
otp: 23.3
- elixir: 1.16.0
otp: 24.3
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix deps.compile
- run: mix compile
- run: ./test/test_phoenix_compatibility.sh