1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-22 23:35:56 +01:00
actix-web/.github/workflows/coverage.yml

41 lines
916 B
YAML
Raw Normal View History

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