forked from erlang/rebar3
-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (56 loc) · 1.3 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
59
60
61
62
63
64
65
name: Common Test
env:
LATEST_OTP_RELEASE: 27
on:
pull_request:
branches:
- '*-emqx'
push:
branches:
- '*-emqx'
jobs:
linux:
name: Test on OTP ${{ matrix.otp_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
otp_version: [25, 26, 27]
os: [ubuntu-latest]
container:
image: erlang:${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: build
run: |
git config --global --add safe.directory $(pwd)
./bootstrap
- name: CT tests
run: ./rebar3 ct
- shell: bash
name: Dialyzer
run: |
./rebar3 clean -a
./rebar3 as dialyzer dialyzer
if: ${{ matrix.otp_version == env.LATEST_OTP_RELEASE }}
macos:
name: Test on MacOS
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
otp_version: [25, 26, 27]
steps:
- uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: Install erlang
run: |
brew install erlang@${{ matrix.otp_version }}
echo "PATH=$(brew --prefix)/opt/erlang@${{ matrix.otp_version }}/bin:$PATH" >> $GITHUB_ENV
- name: Compile
run: ./bootstrap
- name: CT tests
run: ./rebar3 ct