-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 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
---
name: Test
on:
push:
branches:
- "main"
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
otp: ['24.3', '25.2', '26.1.2']
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out source
uses: actions/checkout@v3
- name: Install Erlang and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: '3.18.0'
- name: Retrieve cached deps
uses: actions/cache@v3
with:
path: |
_build
key: ${{ matrix.otp }}-${{ hashFiles('**/rebar.lock') }}
restore-keys: |
${{ matrix.otp }}-
- name: Check formatting
run: rebar3 steamroll --check
- name: Run Erlang tests
run: rebar3 ct
- name: Run static code analysis checks
run: rebar3 dialyzer