1
0
Fork 0
forked from pub-solar/infra

ci: use treefmt2 with flag --ci

Update treefmt to version 2.

This adds the following flags for CI usage:
"--no-cache, --fail-on-change and adjusting some other settings best suited to a CI".
See: https://treefmt.com/usage
This commit is contained in:
teutat3s 2024-10-24 14:49:15 +02:00
parent 0ae6bc637b
commit 4309cc9cdd
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ jobs:
- name: Check formatting - name: Check formatting
run: | run: |
nix --accept-flake-config --access-tokens '' develop --command treefmt --fail-on-change nix --accept-flake-config --access-tokens '' develop --command treefmt --ci
- name: Run flake checks - name: Run flake checks
run: | run: |

View file

@ -107,7 +107,7 @@
nvfetcher nvfetcher
shellcheck shellcheck
shfmt shfmt
treefmt inputs.unstable.legacyPackages.${system}.treefmt2
nixos-generators nixos-generators
inputs.unstable.legacyPackages.${system}.opentofu inputs.unstable.legacyPackages.${system}.opentofu
terraform-backend-git terraform-backend-git