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

Merge pull request #45 from kamadorueda/kamadorueda

feat: diff closures
This commit is contained in:
Kevin Amado 2022-02-08 19:58:54 -05:00 committed by GitHub
commit 0e5afd651d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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