Skip to content

Commit a0f7a1d

Browse files
authored
Update CI config (#233)
1 parent f42cd80 commit a0f7a1d

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,47 @@ name: CI
33
on:
44
pull_request:
55
push:
6-
branches:
6+
branches:
77
- master
88

99
jobs:
10-
mix_test:
11-
name: mix test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
12-
runs-on: ubuntu-latest
13-
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
10+
test:
11+
runs-on: ubuntu-16.04
12+
env:
13+
MIX_ENV: test
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- elixir: 1.7.4
19-
otp: 19.3.6.13
20-
- elixir: 1.8.2
21-
otp: 20.3.8.26
22-
- elixir: 1.9.4
23-
otp: 20.3.8.26
24-
- elixir: 1.10.3
25-
otp: 21.3.8.16
26-
- elixir: 1.10.3
27-
otp: 23.0.2
18+
- pair:
19+
elixir: 1.7.4
20+
otp: 19.3.6.13
21+
- pair:
22+
elixir: 1.11.3
23+
otp: 23.2.5
24+
lint: lint
2825
steps:
29-
- uses: actions/[email protected]
26+
- uses: actions/checkout@v2
27+
28+
- uses: erlef/setup-elixir@v1
29+
with:
30+
otp-version: ${{matrix.pair.otp}}
31+
elixir-version: ${{matrix.pair.elixir}}
32+
3033
- name: Install Dependencies
31-
run: |
32-
mix local.rebar --force
33-
mix local.hex --force
34-
mix deps.get
34+
run: mix deps.get --only test
35+
36+
- run: mix format --check-formatted
37+
if: ${{ matrix.lint }}
38+
39+
- run: mix deps.get && mix deps.unlock --check-unused
40+
if: ${{ matrix.lint }}
41+
42+
- run: mix deps.compile
43+
44+
- run: mix compile --warnings-as-errors
45+
if: ${{ matrix.lint }}
46+
3547
- run: mix test.all
3648
env:
3749
ELIXIR_ERL_OPTIONS: "+T 9"

0 commit comments

Comments
 (0)