-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 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
name: test
on:
push:
branches:
- main
- '*'
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
name: Test OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: [22.x, 23.x, 24.x]
elixir: [1.11.x, 1.12.x, 1.13.x]
steps:
- uses: actions/checkout@v2.4.0
- uses: erlef/setup-elixir@v1.9
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Cache Elixir
uses: actions/cache@v2
with:
path: |
deps
_build/dev
_build/test
key: elixir-cache-${{secrets.CACHE_VERSION}}-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}-${{github.ref}}
restore-keys: |
elixir-cache-${{secrets.CACHE_VERSION}}-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}-
elixir-cache-${{secrets.CACHE_VERSION}}-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-
- name: Install Dependencies
run: mix deps.get
- name: Test
env:
API_KEY: abc123
run: mix test
- uses: actions/upload-artifact@v2
with:
name: log artifacts
path: |
log
- name: Dialyzer
run: mix dialyzer