67 lines (65 loc) · 1.96 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
name: "Compatibility: Phoenix"
on:
push:
branches:
- master
- release/*
jobs:
test_on_source:
runs-on: ubuntu-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] Phoenix ${{matrix.repo_branch}} source code analysed by Credo [OTP/Elixir]"
strategy:
matrix:
otp: [20.3, 21.3, 22.2, 23]
elixir: [1.7.4, 1.8.2, 1.9.4, 1.10.4, 1.11.2]
exclude:
- otp: 23
elixir: 1.7.4
- otp: 23
elixir: 1.8.2
- otp: 23
elixir: 1.9.4
- otp: 20.3
elixir: 1.10.4
- otp: 20.3
elixir: 1.11.2
repo_url: ["https://github.com/phoenixframework/phoenix.git"]
repo_branch: ["v1.4", "master"]
steps:
- uses: actions/checkout@v2.3.1
- 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-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] new Phoenix app analysed by Credo [OTP/Elixir]"
strategy:
matrix:
otp: [20.3, 21.3, 22.2, 23]
elixir: [1.7.4, 1.8.2, 1.9.4, 1.10.4]
exclude:
- otp: 23
elixir: 1.7.4
- otp: 23
elixir: 1.8.2
- otp: 23
elixir: 1.9.4
- otp: 20.3
elixir: 1.10.4
steps:
- uses: actions/checkout@v2.3.1
- 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