name: Check
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
clippy-and-tests:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- 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') }}
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack clippy --workspace --clean-per-run --feature-powerset --skip archiver -- -D warnings
- run: cargo hack test --workspace --feature-powerset --skip archiver