2022-03-10 17:17:49 +01:00
|
|
|
name: Coverage
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
2023-03-15 14:32:55 +01:00
|
|
|
permissions:
|
2023-08-03 08:03:42 +02:00
|
|
|
contents: read
|
2023-03-15 14:32:55 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-03-10 17:17:49 +01:00
|
|
|
jobs:
|
|
|
|
coverage:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-12 06:44:47 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-12 06:24:55 +02:00
|
|
|
|
2024-06-10 05:15:58 +02:00
|
|
|
- name: Install Rust (nightly)
|
2024-10-07 02:44:29 +02:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1
|
2023-08-03 07:58:31 +02:00
|
|
|
with:
|
2024-06-10 05:15:58 +02:00
|
|
|
toolchain: nightly
|
|
|
|
components: llvm-tools
|
2023-08-03 07:58:31 +02:00
|
|
|
|
2024-06-10 05:08:10 +02:00
|
|
|
- name: Install just, cargo-llvm-cov, cargo-nextest
|
2024-11-25 01:43:45 +01:00
|
|
|
uses: taiki-e/install-action@v2.45.6
|
2023-08-03 07:58:31 +02:00
|
|
|
with:
|
2024-06-10 05:08:10 +02:00
|
|
|
tool: just,cargo-llvm-cov,cargo-nextest
|
2022-03-10 17:17:49 +01:00
|
|
|
|
2023-08-03 07:58:31 +02:00
|
|
|
- name: Generate code coverage
|
2024-06-10 05:05:21 +02:00
|
|
|
run: just test-coverage-codecov
|
2022-03-10 17:17:49 +01:00
|
|
|
|
2023-08-03 07:58:31 +02:00
|
|
|
- name: Upload coverage to Codecov
|
2024-11-25 01:42:41 +01:00
|
|
|
uses: codecov/codecov-action@v5.0.7
|
2023-07-20 00:42:40 +02:00
|
|
|
with:
|
2023-08-03 07:58:31 +02:00
|
|
|
files: codecov.json
|
|
|
|
fail_ci_if_error: true
|
2024-02-01 08:34:23 +01:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|