-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.18 KB
/
ci.yml
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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
mix_test:
name: mix test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.11.1
otp: 21.3.8.17
warnings-as-errors: true
- elixir: 1.11.4
otp: 23.2
check_formatted: true
warnings-as-errors: true
- elixir: 1.12.0-rc.0
otp: 24.0-rc3
env:
MIX_ENV: test
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
experimental-otp: true
- name: Install packages
run: |
sudo apt-get install -y -qq inotify-tools
- name: Install Dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get --only test
- run: mix format --check-formatted
if: matrix.check_formatted
- run: mix compile --warnings-as-errors
if: matrix.warnings_as_errors
- run: mix test