1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-17 08:33:30 +01:00

46 lines
1.0 KiB
YAML
Raw Normal View History

2022-02-03 22:57:02 +00:00
# disabled because `cargo tarpaulin` currently segfaults
name: Coverage
on:
push: { branches: [master] }
permissions:
contents: read # to fetch code (actions/checkout)
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:
2022-05-25 22:07:31 +09:00
- uses: actions/checkout@v3
2022-02-03 22:57:02 +00:00
- name: Install stable
2022-12-01 19:45:31 +09:00
run: |
rustup override set stable
rustup update stable
2022-02-03 22:57:02 +00:00
- name: Generate Cargo.lock
2022-12-01 19:45:31 +09:00
run: cargo generate-lockfile
2022-02-03 22:57:02 +00:00
- name: Cache Dependencies
2022-12-01 19:45:31 +09:00
uses: Swatinem/rust-cache@v2.1.0
2022-02-03 22:57:02 +00:00
- name: Generate coverage file
run: |
cargo install cargo-tarpaulin --vers "^0.13"
cargo tarpaulin --workspace --out Xml --verbose
- name: Upload to Codecov
2022-12-01 19:45:31 +09:00
uses: codecov/codecov-action@v3
2022-02-03 22:57:02 +00:00
with: { file: cobertura.xml }