Update gitignore-in/gh-action action to v0.2.0 #41
Workflow file for this run
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: tests | |
on: | |
- pull_request | |
jobs: | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
env: | |
# For incremental builds | |
CARGO_INCREMENTAL: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
# For incremental builds | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@stable | |
# For incremental builds | |
- name: git-restore-mtime | |
uses: chetan/git-restore-mtime-action@v2.0 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
- run: cargo check | |
- name: coverage | |
run: | | |
cargo install cargo-llvm-cov || true # when already cached | |
cargo llvm-cov --lcov --output-path coverage.lcov | |
- name: Upload coverage report to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.lcov | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false | |
verbose: true |