Skip to content

Commit c4be3d6

Browse files
committed
Split lint and compilation into two separate tests
1 parent 63952d2 commit c4be3d6

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,30 @@ on:
77
- main
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-20.04
12+
env:
13+
MIX_ENV: test
14+
name: Lint
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: erlef/setup-elixir@v1
18+
with:
19+
otp-version: "24"
20+
elixir-version: "1.12"
21+
- run: mix deps.get && mix deps.unlock --check-unused
22+
- run: mix format --check-formatted
1023
test:
1124
runs-on: ubuntu-20.04
1225
env:
1326
MIX_ENV: test
14-
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
27+
name: Ubuntu / OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
1528
strategy:
1629
fail-fast: false
1730
matrix:
1831
include:
1932
- elixir: "1.12"
2033
otp: "24"
21-
lint: true
2234
- elixir: "1.12"
2335
otp: "23"
2436
- elixir: "1.11"
@@ -38,11 +50,6 @@ jobs:
3850
otp-version: ${{matrix.otp}}
3951
elixir-version: ${{matrix.elixir}}
4052
- run: mix deps.get --only test
41-
- run: mix format --check-formatted
42-
if: ${{ matrix.lint }}
43-
- run: mix deps.get && mix deps.unlock --check-unused
44-
if: ${{ matrix.lint }}
4553
- run: mix deps.compile
46-
- run: mix compile --warnings-as-errors
47-
if: ${{ matrix.lint }}
54+
- run: mix compile
4855
- run: mix test

0 commit comments

Comments
 (0)