-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 796 Bytes
/
ci.yaml
File metadata and controls
45 lines (38 loc) · 796 Bytes
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
name: Run tests
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
otp:
- "21"
- "22"
- "23"
- "24"
- "25"
- "26"
- "27"
- "28"
container:
image: erlang:${{ matrix.otp }}-alpine
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile
run: rebar3 compile
- name: Linting
# Linting works only with latest version
if: ${{ matrix.otp == '28' }}
run: rebar3 lint
- name: Tests
env:
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
run: |
rebar3 xref
rebar3 dialyzer
rebar3 ct