-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.1 KB
/
Copy pathmain.yml
File metadata and controls
45 lines (43 loc) · 1.1 KB
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
name: CI
on:
push:
pull_request:
branches: [ $default-branch ]
release:
types:
- created
jobs:
test:
name: CI
runs-on: ubuntu-20.04
strategy:
matrix:
otp: [22.3.4.16, 23.0.4, 23.1.5.0, 23.2.5.0]
container:
image: erlang:${{ matrix.otp }}-alpine
steps:
- name: Prepare
run: |
apk update
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v2
- name: Build
run: rebar3 compile
- name: Run tests
run: |
rebar3 do xref
rebar3 do ct
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: DEBUG=1 rebar3 as test coveralls send || /bin/true
- name: Archive Test Output
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-output-${{ matrix.otp }}
path: |
_build/test/logs/
!_build/test/logs/last