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:
parent
0ae6bc637b
commit
4309cc9cdd
|
@ -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: |
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue