-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (58 loc) · 1.52 KB
/
ci.yml
File metadata and controls
62 lines (58 loc) · 1.52 KB
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
name: Tests
on:
pull_request:
branches:
- main
jobs:
style:
runs-on: ubuntu-latest
name: Check Style
env:
MIX_ENV: test
CI: "true"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
elixir-version: '1.18'
- run: mix deps.get --only dev
- run: mix format --check-formatted
- run: mix credo --strict
test:
runs-on: ubuntu-latest
name: Tests on latest version
env:
MIX_ENV: test
CI: "true"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
elixir-version: '1.18'
- run: rm mix.lock
- run: mix deps.get --only test
- run: mix compile --force --warnings-as-errors
- run: mix test --warnings-as-errors
test_different_versions:
runs-on: ubuntu-latest
name: Tests on different versions
env:
MIX_ENV: test
CI: "true"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
elixir-version: '1.18'
- run: rm mix.lock
- run: mix deps.get --only test
- run: mix compile --force --warnings-as-errors
- run: mix blend.get
- run: BLEND=phoenix_live_view_v0_18 mix test
- run: BLEND=phoenix_live_view_v0_19 mix test
- run: BLEND=phoenix_live_view_v0_20 mix test
- run: BLEND=phoenix_live_view_v1_0 mix test
- run: BLEND=phoenix_live_view_v1_1 mix test