-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (52 loc) · 1.21 KB
/
build.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
name: ci
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- image: erlang:24
- image: erlang:25
- image: erlang:26
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
options: "--entrypoint /bin/bash"
steps:
# Setup
- name: Checkout
uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# Inspect rebar3 version
- name: Rebar version
run: rebar3 --version
# PRE Checks
- name: Checks
run: rebar3 check
# Compile
- name: Compile
run: rebar3 compile
# Tests
- name: Run tests
run: rebar3 test_ci
- name: Store test logs
uses: actions/upload-artifact@v1
if: always()
with:
name: ct-logs
path: _build/test/logs
# Cover reports
- name: Create Cover Reports
run: rebar3 cover
- name: Publish Test Report
uses: nomasystems/action-junit-report@v2
with:
report_paths: '_build/test/logs/**/report.xml'