-
Notifications
You must be signed in to change notification settings - Fork 167
80 lines (74 loc) · 1.65 KB
/
ci.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
jobs:
otps:
name: OTP ${{ matrix.otp }}
runs-on: ubuntu-latest
container: erlang:${{ matrix.otp }}
strategy:
matrix:
otp:
- "26.2"
- "26.0"
- "25.3"
- "25.0"
- "24.3"
- "24.0"
- "23.2"
- "23.0"
- "22.3"
- "21.3"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache .plt directory
uses: actions/cache@v3
with:
path: .plt
key: ${{ runner.os }}-otp-${{ matrix.otp }}
- name: Test everything
run: make all
examples:
name: Test examples
runs-on: ubuntu-latest
container: erlang:26.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test examples
run: make test-examples
parallel-examples:
name: Test examples in parallel
runs-on: ubuntu-latest
container: erlang:26.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test examples in parallel
run: make test-parallel
coverage:
name: Code coverage
runs-on: ubuntu-latest
container: erlang:26.2
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Measure coverage
run: make test
env:
COVER: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: "_build/test/covertool/proper.covertool.xml"