-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (43 loc) · 1.03 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
name: test
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
otp: ["25.1", "24.3.4"]
elixir: ["1.14.0", "1.13.4"]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Cache (Dialyzer PLT)
uses: actions/cache@v2
with:
path: |
_build/*/*.plt
_build/*/*.plt.hash
key: ${{matrix.otp}}-${{matrix.elixir}}
- run: mix deps.get
- run: mix format --check-formatted
- name: Dialyzer (dev)
run: mix dialyzer
- name: Dialyzer (test)
run: mix dialyzer
env:
MIX_ENV: test
- run: mix coveralls.github