1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 13:07:47 +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 - label: cache
if: build.branch == "main" if: build.branch == "main"
command: command:
- echo +++
- nix3 build - nix3 build
- cachix push alejandra result - cachix push alejandra result
@ -16,10 +17,28 @@ steps:
artifact_paths: artifact_paths:
- tarpaulin-report.html - tarpaulin-report.html
command: command:
- echo +++
- direnv allow - direnv allow
- eval "$(direnv export bash)" - eval "$(direnv export bash)"
- cargo tarpaulin -o html - 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 - label: flake check
command: command:
- echo +++
- nix3 flake check - nix3 flake check