-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.02 KB
/
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
39
40
41
42
---
name: test
"on":
pull_request:
push:
branches:
- main
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
strategy:
matrix:
elixir: ["1.12.x", "1.13.x"]
erlang: ["23.x", "24.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.erlang }}
- uses: actions/cache@v2
with:
path: |
_build
deps
key: ${{ runner.os }}-erl${{ matrix.erlang }}-ex${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-erl${{ matrix.erlang }}-ex${{ matrix.elixir }}-
${{ runner.os }}-erl${{ matrix.erlang }}-
- name: Install Elixir dependencies
run: mix "do" deps.get, deps.clean --unused
- name: Lint & test
run: |
mix cotton.lint
mix coveralls.github