-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (34 loc) · 915 Bytes
/
erlang.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
name: Build, Test, Dialyze
on:
pull_request:
types: [ opened, reopened, synchronize ]
push:
branches:
- 'master'
jobs:
linux:
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: [23, 24, 25, 26]
os: [ubuntu-latest]
container:
image: erlang:${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v2
- name: Run tests
run: rebar3 ct
- name: Documentation
run: rebar3 edoc
- name: ExDoc Documentation
run: if [ $(rebar3 version | awk '{print $5}') -gt 23 ]; then rebar3 ex_doc; fi;
- shell: bash
name: Dialyzer
run: rebar3 dialyzer
- shell: bash
name: Escriptize
run: rebar3 as prod escriptize
- shell: bash
name: Smoke test
run: ./erlperf 'timer:sleep(1).'