-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1.01 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
name: nbson ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
include:
- image: erlang:24
- image: erlang:25
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
options: "--entrypoint /bin/bash"
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Rebar version
run: rebar3 --version
- name: Checks
run: rebar3 check
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 ci_test
- name: Store test logs
uses: actions/upload-artifact@v1
if: always()
with:
name: ct-logs
path: _build/test/logs
- name: Create test summary
uses: test-summary/action@v1
if: always()
with:
paths: '_build/test/logs/**/report.xml'