-
Notifications
You must be signed in to change notification settings - Fork 28
85 lines (79 loc) · 1.92 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Test
on: [push, pull_request]
jobs:
dialyzer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 24.3
- name: Dialyzer
run: rebar3 dialyzer
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Print clang-format version
run: clang-format --version
- name: Run clang-format
run: dev/check-fmt
test-linux:
runs-on: ubuntu-latest
strategy:
matrix:
otp: [23.3]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 eunit
test-linux-debug:
runs-on: ubuntu-latest
strategy:
matrix:
otp: [23.3]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
- name: Compile
run: rebar3 as debug compile
- name: Run tests
run: rebar3 as debug eunit
- run: dev/l.sh 128
env:
RE2_DEBUG: 1
# There is an issue with triq which prevents these tests from running ...
# test-macos:
# runs-on: macos-latest
# strategy:
# matrix:
# otp: ["erlang@22", "erlang@23"]
# steps:
# - uses: actions/checkout@v2
# - run: brew install ${{matrix.otp}} rebar3
# - name: Compile
# run: rebar3 compile
# - name: Run tests
# run: rebar3 eunit
test-windows:
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
- run: choco install erlang rebar3
- run: |
Install-Module -Name posh-vs -Force
Install-PoshVs
. $profile
- name: Compile
run: |
rebar3 compile
- name: Run tests
run: |
rebar3 eunit