1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-19 14:14:41 +01:00
actix-web/.github/workflows/coverage.yml

35 lines
825 B
YAML
Raw Normal View History

2022-03-10 16:17:49 +00:00
# disabled because `cargo tarpaulin` currently segfaults
name: Coverage
on:
push:
branches: [master]
2023-03-15 13:32:55 +00:00
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-03-10 16:17:49 +00:00
jobs:
# job currently (1st Feb 2022) segfaults
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
2023-03-11 23:19:03 +00:00
- uses: actions/checkout@v3
2022-03-10 16:17:49 +00:00
2023-04-02 03:27:14 +01:00
- uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
2022-03-10 16:17:49 +00:00
- name: Generate coverage file
run: |
cargo install cargo-tarpaulin --vers "^0.13"
cargo tarpaulin --workspace --features=rustls,openssl --out Xml --verbose
- name: Upload to Codecov
uses: codecov/codecov-action@v3.1.4
with:
file: cobertura.xml