Release v1.4.1 #134
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: Run tests | |
on: | |
push: | |
paths: | |
- "src/**" | |
- "tests/**" | |
- "examples/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
- "build.rs" | |
- ".github/workflows/test.yml" | |
pull_request: | |
branches: | |
- master | |
- "release/*" | |
env: | |
RUST_BACKTRACE: short | |
RUSTFLAGS: '-D warnings' | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Cache build artifacts | |
uses: Swatinem/rust-cache@v2 | |
- name: Lint code | |
run: cargo clippy --all-targets | |
- name: Compile tests | |
run: cargo test --workspace --no-fail-fast --no-run --locked | |
- name: Run tests | |
run: cargo test --workspace --no-fail-fast |