Skip to content

Commit

Permalink
ci(feat): Add Nix binary cache and update treefmt command in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobLichterfeld committed Sep 25, 2024
1 parent 0f1ac9d commit 4c14789
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ensure_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: run treefmt in CI mode
run: nix flake check --impure
- name: Nix binary cache
uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b #v8

- name: Run treefmt in CI mode
run: nix develop --command treefmt --ci
# or use: https://github.com/cachix/git-hooks.nix?tab=readme-ov-file

0 comments on commit 4c14789

Please sign in to comment.