Skip to content

Add apply command

Add apply command #501

Workflow file for this run

name: Rust checks
on:
pull_request:
push:
branches: [main]
jobs:
rust-fmt:
runs-on: UbuntuLatest32Cores128G
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Rust formatting
run: nix develop --command cargo fmt --check
rust-clippy-and-test:
# We need to run the checks on Linux and macOS because there are system-specific
# versions of fh (e.g. `fh apply nix-darwin` is only on macOS while `fh apply
# nixos` is only on Linux)
strategy:
matrix:
runners:
# Linux
- UbuntuLatest32Cores128G
# macOS
- macos-latest-xlarge
runs-on: ${{ matrix.runners }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Clippy
run: nix develop --command cargo clippy --all-targets --all-features -- -Dwarnings
- name: Test
run: nix develop --command cargo test --all-features