1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-23 07:14:35 +01:00

41 lines
826 B
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
2023-04-09 19:41:57 +01:00
- name: Install Rust (nightly)
2023-09-16 00:30:38 +01:00
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly
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
2023-04-09 19:41:57 +01:00
2022-02-03 22:57:02 +00:00
- name: Upload to Codecov
2022-12-01 19:45:31 +09:00
uses: codecov/codecov-action@v3
2023-09-16 00:30:38 +01:00
with:
file: cobertura.xml