Skip to content

Commit f2c3143

Browse files
authored
Update CI config (#304)
1 parent 1298142 commit f2c3143

File tree

2 files changed

+33
-13
lines changed

2 files changed

+33
-13
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,44 @@ name: CI
22
on: [push, pull_request]
33
jobs:
44
test-elixir:
5-
runs-on: ubuntu-18.04
6-
container: elixir:${{ matrix.elixir_version }}-slim
7-
5+
runs-on: ubuntu-16.04
6+
env:
7+
MIX_ENV: test
88
strategy:
9+
fail-fast: false
910
matrix:
10-
elixir_version: ["1.8", "1.9", "1.10"]
11-
11+
include:
12+
- pair:
13+
elixir: 1.8.2
14+
otp: 20.3.8.26
15+
- pair:
16+
elixir: 1.11.3
17+
otp: 23.2.5
18+
lint: lint
1219
steps:
13-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
21+
22+
- uses: erlef/setup-elixir@v1
23+
with:
24+
otp-version: ${{matrix.pair.otp}}
25+
elixir-version: ${{matrix.pair.elixir}}
26+
1427
- name: Install Dependencies
15-
run: |
16-
apt-get update
17-
apt-get install -y git
18-
mix local.rebar --force
19-
mix local.hex --force
20-
mix deps.get
28+
run: mix deps.get --only test
29+
30+
- run: mix format --check-formatted
31+
if: ${{ matrix.lint }}
32+
33+
- run: mix deps.get && mix deps.unlock --check-unused
34+
if: ${{ matrix.lint }}
35+
36+
- run: mix deps.compile
37+
38+
- run: mix compile --warnings-as-errors
39+
if: ${{ matrix.lint }}
40+
2141
- run: mix test
42+
2243
- run: mix test.as_a_dep
2344

2445
test-mysql:

mix.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"db_connection": {:hex, :db_connection, "2.2.2", "3bbca41b199e1598245b716248964926303b5d4609ff065125ce98bcd368939e", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm", "642af240d8a8affb93b4ba5a6fcd2bbcbdc327e1a524b825d383711536f8070c"},
66
"decimal": {:hex, :decimal, "1.9.0", "83e8daf59631d632b171faabafb4a9f4242c514b0a06ba3df493951c08f64d07", [:mix], [], "hexpm", "b1f2343568eed6928f3e751cf2dffde95bfaa19dd95d09e8a9ea92ccfd6f7d85"},
77
"deep_merge": {:hex, :deep_merge, "0.2.0", "c1050fa2edf4848b9f556fba1b75afc66608a4219659e3311d9c9427b5b680b3", [:mix], [], "hexpm", "e3bf435a54ed27b0ba3a01eb117ae017988804e136edcbe8a6a14c310daa966e"},
8-
"earmark": {:hex, :earmark, "1.4.4", "4821b8d05cda507189d51f2caeef370cf1e18ca5d7dfb7d31e9cafe6688106a4", [:mix], [], "hexpm", "1f93aba7340574847c0f609da787f0d79efcab51b044bb6e242cae5aca9d264d"},
98
"earmark_parser": {:hex, :earmark_parser, "1.4.10", "6603d7a603b9c18d3d20db69921527f82ef09990885ed7525003c7fe7dc86c56", [:mix], [], "hexpm", "8e2d5370b732385db2c9b22215c3f59c84ac7dda7ed7e544d7c459496ae519c0"},
109
"ecto": {:git, "https://github.com/elixir-ecto/ecto.git", "feea89d22a93a7b73a7dc00cd2d9a59874892042", []},
1110
"ex_doc": {:hex, :ex_doc, "0.23.0", "a069bc9b0bf8efe323ecde8c0d62afc13d308b1fa3d228b65bca5cf8703a529d", [: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", "f5e2c4702468b2fd11b10d39416ddadd2fcdd173ba2a0285ebd92c39827a5a16"},

0 commit comments

Comments
 (0)