Files
aare_launcher/.gitea/workflows/test-and-coverage.yaml
T
perl_d ac25a0e9c0
Test and Coverage / Test (push) Successful in 20s
Test and Coverage / Coverage (push) Successful in 38s
ci: fix cov workflow
2026-07-24 11:34:22 +02:00

36 lines
1023 B
YAML

name: Test and Coverage
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo test --all-features
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- name: Install cargo-tarpaulin
uses: https://github.com/taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- name: Generate code coverage
run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- uses: https://github.com/actions/upload-artifact@v3
with:
name: coverage
path: cobertura.xml