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
name: Nightly Coverage
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: nightly-coverage-${{ github.ref }}
cancel-in-progress: true
jobs:
setup:
uses: greenticai/.github/.github/workflows/host-crate-ci.yml@main
coverage:
name: Coverage Policy
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.94.0
- uses: Swatinem/rust-cache@v2
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main
- name: Install coverage toolchain binaries
run: cargo binstall --no-confirm --force greentic-dev cargo-llvm-cov cargo-nextest
- name: Install llvm-tools-preview
run: rustup component add llvm-tools-preview
- name: Verify coverage toolchain
run: |
cargo llvm-cov --version
cargo nextest --version
- name: Run coverage policy
run: greentic-dev coverage