Skip to content

Commit 36c4343

Browse files
committed
Update CI config
1 parent 4369c5d commit 36c4343

File tree

2 files changed

+26
-46
lines changed

2 files changed

+26
-46
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,60 +7,41 @@ on:
77
- master
88

99
jobs:
10-
mix_test:
11-
name: mix test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
12-
runs-on: ubuntu-latest
10+
test:
11+
runs-on: ubuntu-16.04
12+
env:
13+
MIX_ENV: test
1314
strategy:
1415
fail-fast: false
1516
matrix:
1617
include:
17-
- elixir: 1.5.3
18-
otp: 20.3.8.26
19-
- elixir: 1.6.6
20-
otp: 20.3.8.26
21-
- elixir: 1.7.4
22-
otp: 20.3.8.26
23-
- elixir: 1.8.2
24-
otp: 20.3.8.26
25-
- elixir: 1.9.4
26-
otp: 20.3.8.26
27-
- elixir: 1.10.4
28-
otp: 23.0.3
18+
- pair:
19+
elixir: 1.5.3
20+
otp: 19.3.6.13
21+
- pair:
22+
elixir: 1.11.3
23+
otp: 23.2.5
24+
lint: lint
2925
steps:
3026
- uses: actions/checkout@v2
27+
3128
- uses: erlef/setup-elixir@v1
3229
with:
33-
otp-version: ${{matrix.otp}}
34-
elixir-version: ${{matrix.elixir}}
30+
otp-version: ${{matrix.pair.otp}}
31+
elixir-version: ${{matrix.pair.elixir}}
32+
3533
- name: Install Dependencies
36-
run: |
37-
mix local.hex --force
38-
mix deps.get --only test
39-
- run: mix test
34+
run: mix deps.get --only test
4035

41-
check_formatted:
42-
name: Check formatted
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: erlef/setup-elixir@v1
47-
with:
48-
otp-version: 23.0.3
49-
elixir-version: 1.10.4
5036
- run: mix format --check-formatted
37+
if: ${{ matrix.lint }}
5138

52-
compile_without_warnings:
53-
name: Compile without warnings
54-
runs-on: ubuntu-latest
55-
steps:
56-
- uses: actions/checkout@v2
57-
- uses: erlef/setup-elixir@v1
58-
with:
59-
otp-version: 22.3.4.5
60-
elixir-version: 1.9.4 # not 1.10 as its --warnigs-as-errors has bugs https://github.com/elixir-lang/elixir/issues/10073
61-
- name: Install Dependencies
62-
run: |
63-
mix local.hex --force
64-
mix deps.get
65-
- name: Compile without warnings
66-
run: mix compile --warnings-as-errors
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+
47+
- run: mix test

mix.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
%{
2-
"earmark": {:hex, :earmark, "1.4.3", "364ca2e9710f6bff494117dbbd53880d84bebb692dafc3a78eb50aa3183f2bfd", [:mix], [], "hexpm", "8cf8a291ebf1c7b9539e3cddb19e9cef066c2441b1640f13c34c1d3cfc825fec"},
32
"earmark_parser": {:hex, :earmark_parser, "1.4.10", "6603d7a603b9c18d3d20db69921527f82ef09990885ed7525003c7fe7dc86c56", [:mix], [], "hexpm", "8e2d5370b732385db2c9b22215c3f59c84ac7dda7ed7e544d7c459496ae519c0"},
43
"ex_doc": {:hex, :ex_doc, "0.22.6", "0fb1e09a3e8b69af0ae94c8b4e4df36995d8c88d5ec7dbd35617929144b62c00", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "1e0aceda15faf71f1b0983165e6e7313be628a460e22a031e32913b98edbd638"},
54
"makeup": {:hex, :makeup, "1.0.3", "e339e2f766d12e7260e6672dd4047405963c5ec99661abdc432e6ec67d29ef95", [:mix], [{:nimble_parsec, "~> 0.5", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "2e9b4996d11832947731f7608fed7ad2f9443011b3b479ae288011265cdd3dad"},

0 commit comments

Comments
 (0)