-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (50 loc) · 1.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- elixir: '1.9.4'
otp: '20.3'
runs-on: ubuntu-20.04
- elixir: '1.10.4'
otp: '21.3'
runs-on: ubuntu-20.04
- elixir: '1.11.4'
otp: '22.3'
runs-on: ubuntu-20.04
- elixir: '1.12.3'
otp: '23.3'
runs-on: ubuntu-20.04
- elixir: '1.13.4'
otp: '24.3'
runs-on: ubuntu-22.04
- elixir: '1.14.2'
otp: '25.0'
runs-on: ubuntu-22.04
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: setup
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: mix-cache
uses: actions/cache@v3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: mix-deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: test
run: mix coveralls.github