-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (58 loc) · 1.55 KB
/
selftest.yaml
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
name: selftest
on:
pull_request:
push:
branches:
- release/*
jobs:
defaults:
uses: ./.github/workflows/test.yaml
with:
artifact: 'coverage-defaults'
upload-coverage: false
check-defaults:
needs: defaults
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: coverage-defaults
path: target/coverage
- name: Canonicalize coverage
run: |
cd target/coverage
for f in *.lcov; do
sort "$f" > tmp
mv tmp "$f"
done
- name: Check coverage
run: diff -ur target/coverage desired-canon-cov-defaults
matrix:
uses: ./.github/workflows/test.yaml
with:
matrix: '{"rust-toolchain": ["stable", "beta"], "features": ["x", "y", "x,y"], "exclude": [{"rust-toolchain": "beta", "features": "y"}]}'
artifact: 'coverage-matrix'
upload-coverage: false
check-matrix:
needs: matrix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: coverage-matrix
path: target/coverage
- name: Canonicalize coverage
run: |
cd target/coverage
for f in *.lcov; do
sort "$f" > tmp
mv tmp "$f"
done
- name: Check coverage
run: diff -ur target/coverage desired-canon-cov-matrix