1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

feat: diff closures

This commit is contained in:
Kevin Amado 2022-02-08 19:43:04 -05:00
parent c7bb492d1d
commit f05cc08903
No known key found for this signature in database
GPG key ID: FFF341057F503148

View file

@ -6,6 +6,7 @@ steps:
- label: cache
if: build.branch == "main"
command:
- echo +++
- nix3 build
- cachix push alejandra result
@ -16,10 +17,28 @@ steps:
artifact_paths:
- tarpaulin-report.html
command:
- echo +++
- direnv allow
- eval "$(direnv export bash)"
- cargo tarpaulin -o html
- label: diff
command:
- git clone --depth 1 https://github.com/nixos/nixpkgs
- echo --- Closure @ before
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > before
- echo --- Formatting
- nix3 run . -- nixpkgs
- echo --- Closure @ after
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > after
- echo +++ Closure diff
- git diff --no-index before after || true
- git diff --no-index before after --shortstat || true
- label: flake check
command:
- echo +++
- nix3 flake check