-
-
Notifications
You must be signed in to change notification settings - Fork 184
70 lines (54 loc) · 1.69 KB
/
ci.yml
File metadata and controls
70 lines (54 loc) · 1.69 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
name: CI
on:
push:
branches:
- master
- "release/**"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: -Dwarnings
jobs:
lints:
name: Run lint checks
uses: ./.github/workflows/lint.yml
check:
name: Check compile errors
uses: ./.github/workflows/check.yml
test:
name: Run tests
uses: ./.github/workflows/test.yml
codecov:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- run: rustup component add llvm-tools-preview
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
- uses: taiki-e/install-action@21eb0b6228fa6252dafdd9c82e7516ad2328c775 # cargo-llvm-cov
- run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --locked
- uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
doc:
name: Build documentation
uses: ./.github/workflows/doc.yml
required:
name: Check required jobs
runs-on: ubuntu-latest
if: ${{ always() }}
# Keep this list in sync with all CI jobs that should be required.
# `codecov` is intentionally excluded from this aggregator.
needs: [lints, check, test, doc]
steps:
- name: Fail if any required job did not succeed
if: >-
${{
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled') ||
contains(needs.*.result, 'skipped')
}}
run: exit 1