Repository navigation
74 lines (63 loc) · 1.79 KB
/
Copy pathtest.yml
File metadata and controls
74 lines (63 loc) · 1.79 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
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
name: Test
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
jobs:
build:
name: OTP ${{ matrix.otp_version }} / rebar3 ${{ matrix.rebar3_version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- otp_version: "24"
rebar3_version: "3.21.0"
os: ubuntu-latest
- otp_version: "25"
rebar3_version: "3.21.0"
os: ubuntu-latest
- otp_version: "26"
rebar3_version: "3.25.1"
os: ubuntu-latest
- otp_version: "27"
rebar3_version: "3.25.1"
os: ubuntu-latest
- otp_version: "28"
rebar3_version: "3.25.1"
os: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
- uses: actions/cache@v4
name: Cache
with:
path: |
_build
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ matrix.rebar3_version }}-${{ hashFiles(format('rebar.lock')) }}-1
restore-keys: |
${{ runner.os }}-build-${{ matrix.otp_version }}-${{ matrix.rebar3_version }}-1-
- name: Report
run: rebar3 report "compile"
- name: Compile
run: rebar3 compile
- name: Common Test tests
run: rebar3 ct --cover
- name: XRef
run: rebar3 xref
- name: Documentation
run: |
rebar3 hex build docs
test -s doc/index.html
test -s doc/telemetry.md
test -s doc/llms.txt
test -s doc/telemetry.epub
if: ${{ matrix.otp_version == 28 }}
- name: Dialyzer
run: rebar3 dialyzer
if: ${{ matrix.otp_version == 28 }}