-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (81 loc) · 2.41 KB
/
Copy pathci.yaml
File metadata and controls
104 lines (81 loc) · 2.41 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: "always"
LLVM_PATH: "${{ github.workspace }}/llvm"
LLVM_VERSION: "18.1"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
with:
llvm-version: ${{ env.LLVM_VERSION }}
llvm-path: ${{ env.LLVM_PATH }}
- name: Install cargo-llvm-cov and cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov,nextest
- name: Test with code coverage
run: |
cargo llvm-cov nextest --all-features --workspace --lcov --profile=ci --output-path lcov.info
env:
LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}"
- name: Upload test results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/nextest/ci/junit.xml
report_type: test_results
fail_ci_if_error: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
report_type: coverage
fail_ci_if_error: false
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
with:
llvm-version: ${{ env.LLVM_VERSION }}
llvm-path: ${{ env.LLVM_PATH }}
- name: Run clippy
run: |
cargo clippy --all-features --all-targets --keep-going -- -D warnings
env:
LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}"
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: streetsidesoftware/cspell-action@v8
with:
incremental_files_only: false
cargo-mutants:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
with:
llvm-version: ${{ env.LLVM_VERSION }}
llvm-path: ${{ env.LLVM_PATH }}
- name: Install cargo-mutants
uses: taiki-e/install-action@v2
with:
tool: cargo-mutants
- run: cargo mutants -vV --in-place
- uses: actions/upload-artifact@v4
if: always()
with:
name: mutants-out
path: mutants.out
# spell-checker:ignore libtinfo,Swatinem