ci: overhaul coverage workflow #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development Checks | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Format | |
run: cargo fmt --all --check | |
- name: Check | |
run: cargo check --all-targets | |
- name: Clippy | |
run: cargo clippy --version && cargo clippy --all-targets -- -D clippy::pedantic | |
env: | |
CARGO_INCREMENTAL: 0 | |
- name: Install torrent edition tool (needed for testing) | |
run: cargo install imdl | |
- name: Unit and integration tests | |
run: cargo test --all-targets | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: taiki-e/install-action@nextest | |
- name: Test Coverage | |
run: cargo llvm-cov nextest | |
- name: E2E Tests | |
run: ./docker/bin/run-e2e-tests.sh |