mirror of
https://github.com/nix-community/impermanence
synced 2024-11-10 05:44:17 +00:00
ci: Use nix-shell instead of nix run
Since the release of Nix 2.4, the ci pipeline is broken, as the syntax and behavior of nix run changed. The command is also considered experimental. Switch to using nix-shell instead.
This commit is contained in:
parent
ce77ed9bd0
commit
4269cf2fbb
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Check Nix formatting
|
||||
run: |
|
||||
nix run nixpkgs.nixpkgs-fmt -c nixpkgs-fmt --check .
|
||||
nix-shell -p nixpkgs-fmt --run "nixpkgs-fmt --check ."
|
||||
shell_formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -28,7 +28,7 @@ jobs:
|
|||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Check shell script formatting
|
||||
run: |
|
||||
find . -name "*.*sh" -exec nix run nixpkgs.shfmt -c shfmt -i 4 -d {} +
|
||||
find . -name "*.*sh" -exec nix-shell -p shfmt --run "shfmt -i 4 -d {}" \;
|
||||
shell_error_checking:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -38,4 +38,4 @@ jobs:
|
|||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Check for shell script errors
|
||||
run: |
|
||||
find . -name "*.*sh" -exec nix run nixpkgs.shellcheck -c shellcheck {} +
|
||||
find . -name "*.*sh" -exec nix-shell -p shellcheck --run "shellcheck {}" \;
|
||||
|
|
Loading…
Reference in a new issue