ci(nix): run nixpkgs-fmt asap
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b7e81edbbe
commit
105e9efeeb
@ -28,6 +28,16 @@ def main(ctx):
|
||||
"nix --version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "nixpkgs-fmt",
|
||||
"image": "docker.io/immawanderer/nix-nixpkgs-fmt:linux-amd64",
|
||||
"pull": "always",
|
||||
"depends_on": ["clone"],
|
||||
"commands": [
|
||||
"nixpkgs-fmt --version || true",
|
||||
"nixpkgs-fmt --check . || (echo 'run `nixpkgs-fmt .` to fix it' && exit 1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "enable flakes",
|
||||
"image": "docker.io/nixos/nix:2.8.0-amd64",
|
||||
@ -87,16 +97,6 @@ def main(ctx):
|
||||
"cat /etc/nix/nix.conf"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "nixpkgs-fmt",
|
||||
"image": "docker.io/immawanderer/nix-nixpkgs-fmt:linux-amd64",
|
||||
"pull": "always",
|
||||
"depends_on": ["pull nix"],
|
||||
"commands": [
|
||||
"nixpkgs-fmt --version || true",
|
||||
"nixpkgs-fmt --check . || (echo 'run `nixpkgs-fmt .` to fix it' && exit 1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "statix",
|
||||
"image": "docker.io/immawanderer/nix-statix:linux-amd64",
|
||||
|
Loading…
Reference in New Issue
Block a user