-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.1 KB
/
test.yml
File metadata and controls
45 lines (42 loc) · 1.1 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
41
42
43
44
45
---
name: test
"on":
pull_request:
push:
branches:
- main
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
strategy:
matrix:
elixir: ["1.13.x", "1.14.x"]
erlang: ["25.x", "26.x"]
os: [ubuntu-latest]
exclude:
- elixir: "1.13.x"
erlang: "26.x"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.erlang }}
- uses: actions/cache@v3
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