chore: update hash format #63
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: static-check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
static-check: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
with: | |
extra_nix_config: 'experimental-features = nix-command flakes' | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: DeterminateSystems/flake-checker-action@main | |
- name: Check formatting | |
run: nix develop -c cargo fmt --check | |
- name: Run linting | |
run: nix develop -c cargo clippy | |
- name: Run tests | |
run: nix develop -c cargo test --locked --frozen --all-features | |
static-check-windows: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Run linting | |
run: cargo clippy | |
- name: Run tests | |
run: cargo test --locked --frozen --all-features |