-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (49 loc) · 1.1 KB
/
main.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
50
51
52
53
54
55
56
57
58
name: Build, Test, Dialyze
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
linux:
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: [23]
os: [ubuntu-latest]
container:
image: erlang:${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v2
- name: Compile
run: rebar3 compile
- name: CT tests
run: rebar3 do edoc,ct
- shell: bash
name: Dialyzer
run: rebar3 dialyzer
macos:
name: Test on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Erlang
run: brew install erlang
- name: Install rebar3
run: brew install rebar3
- name: CT tests
run: rebar3 do edoc,ct
windows:
name: Test on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install Erlang
run: choco install erlang
- name: Install rebar3
run: choco install rebar3
- name: CT tests
run: rebar3 ct