-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 920 Bytes
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
include:
- pair:
otp: 25.2
elixir: 1.14
- pair:
otp: 26.2
elixir: 1.16
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- name: Install → Compile dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix do deps.get, deps.compile, compile
- name: Run tests
run: |
mix test
- name: "Coverage"
run: mix coveralls.github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}