Skip to content

ci: add pre-commit hooks #36

ci: add pre-commit hooks

ci: add pre-commit hooks #36

Workflow file for this run

name: check
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# - uses: DeterminateSystems/flake-checker-action@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ github.token }}
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix', 'flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
restore-prefixes-all-matches: nix-${{ runner.os }}-
- uses: cachix/cachix-action@v15
with:
name: cachix
extraPullNames: nix-community,nixpkgs-unfree
- run: nix flake check
- run: nix fmt