-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.13 KB
/
tests.yml
File metadata and controls
40 lines (38 loc) · 1.13 KB
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
---
name: tests
on: [push, pull_request]
jobs:
tests:
name: Run Tests (Elixir ${{ matrix.combo.elixir }} - OTP ${{ matrix.combo.otp }})
runs-on: ubuntu-latest
strategy:
matrix:
combo:
- elixir: 'v1.10'
otp: '23'
- elixir: 'v1.11'
otp: '23'
- elixir: 'v1.12'
otp: '23'
- elixir: 'v1.13'
otp: '24'
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.combo.otp }}
elixir-version: ${{ matrix.combo.elixir }}
- uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-${{ matrix.combo.otp }}-${{ matrix.combo.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-${{ matrix.combo.otp }}-${{ matrix.combo.elixir }}-
- run: mix deps.get
- run: mix format --dry-run --check-formatted
- run: mix test --trace
- run: mix coveralls.github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}