-
Notifications
You must be signed in to change notification settings - Fork 5
79 lines (68 loc) · 2 KB
/
elixir-ci.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
name: Elixir CI
on:
push:
branches: [main, staging]
pull_request:
branches: [main, staging]
env:
MIX_ENV: test
phoenix-version: 1.7.0
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: 1.14.5
otp: 24.3
phoenix-live-view-version: 0.19.0
- elixir: 1.14.5
otp: 24.3
phoenix-live-view-version: 0.20.0
- elixir: 1.15.4
otp: 25.3
phoenix-live-view-version: 0.19.0
- elixir: 1.15.4
otp: 25.3
phoenix-live-view-version: 0.20.0
- elixir: 1.16.3
otp: 26.2
phoenix-live-view-version: 0.19.0
- elixir: 1.16.3
otp: 26.2
phoenix-live-view-version: 0.20.0
- elixir: 1.16.3
otp: 26.2
phoenix-live-view-version: 1.0.0
- elixir: 1.17.3
otp: 27.0
phoenix-live-view-version: 1.0.0
- elixir: 1.18.0
otp: 27.0
phoenix-live-view-version: 1.0.0
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: ./.github/actions/setup-elixir
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
phoenix-live-view-version: ${{ matrix.phoenix-live-view-version }}
phoenix-version: ${{ env.phoenix-version }}
- run: mix compile --error-on-warnings
- run: mix test
- run: mix format --check-formatted
- run: mix credo --strict
- name: Run test app tests
run: |
cd test_app
mix deps.get
mix deps | grep "phoenix "
mix test
- name: Check let warning
run: |
cd test_app
mix test --only let_warning 2> /tmp/test.output
cat /tmp/test.output
!(cat /tmp/test.output | grep -q "Using variables in HEEx templates are discouraged as they disable change tracking.")