Skip to content

Commit 6dd7057

Browse files
Drive-by change: an Actions workflow for running tests and Dialyzer
1 parent 6186bcd commit 6dd7057

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
otp: ['26', '27', '28']
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: erlef/setup-beam@v1
17+
with:
18+
otp-version: ${{ matrix.otp }}
19+
rebar3-version: '3.24'
20+
- uses: actions/cache@v4
21+
with:
22+
path: |
23+
_build
24+
~/.cache/rebar3
25+
key: ${{ runner.os }}-otp-${{ matrix.otp }}-rebar3-${{ hashFiles('rebar.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-otp-${{ matrix.otp }}-rebar3-
28+
- run: epmd -daemon
29+
- run: rebar3 ct --sname batch_test
30+
- run: rebar3 dialyzer
31+
- run: rebar3 xref

0 commit comments

Comments
 (0)