chore: release v0.15.21 #380
Workflow file for this run
This file contains hidden or 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: Run Test and report Test coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| files: | |
| - '**.rs' | |
| - '**.toml' | |
| - '.github/workflows/codequality.yaml' | |
| pull_request: | |
| branches: | |
| - main | |
| files: | |
| - '**.rs' | |
| - '**.toml' | |
| - '.github/workflows/codequality.yaml' | |
| jobs: | |
| tarpaulin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install rust | |
| run: | | |
| rustup set auto-self-update disable | |
| rustup toolchain install stable --profile minimal | |
| rustup show | |
| - name: Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting with cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: Install required cargo packages for reporting format | |
| run: cargo install cargo-tarpaulin | |
| - name: Test without default features | |
| run: cargo test --no-default-features | |
| - name: Run Tarpaulin (Test coverage) | |
| run: | | |
| cargo tarpaulin --all-features --coveralls ${{ secrets.COVERALLS_KEY }} |