1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01:00

48 lines
1.0 KiB
YAML
Raw Normal View History

2022-02-03 22:57:02 +00:00
name: Coverage
on:
2023-09-16 00:30:38 +01:00
push:
branches: [master]
2023-04-09 19:41:57 +01:00
permissions: { contents: read }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-02-03 22:57:02 +00:00
jobs:
coverage:
runs-on: ubuntu-latest
services:
redis:
image: redis:5.0.7
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v4
2022-02-03 22:57:02 +00:00
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1
2023-09-16 00:30:38 +01:00
with:
2024-06-20 03:10:20 +01:00
toolchain: nightly
components: llvm-tools-preview
2022-02-03 22:57:02 +00:00
2024-06-20 03:06:57 +01:00
- name: Install just, cargo-llvm-cov, cargo-nextest
uses: taiki-e/install-action@v2.47.2
with:
2024-06-20 03:06:57 +01:00
tool: just,cargo-llvm-cov,cargo-nextest
- name: Generate code coverage
2024-06-20 02:57:44 +01:00
run: just test-coverage-codecov
2023-04-09 19:41:57 +01:00
2022-02-03 22:57:02 +00:00
- name: Upload to Codecov
uses: codecov/codecov-action@v5.0.7
2023-09-16 00:30:38 +01:00
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}