Skip to content

Commit

Permalink
Test local non-default target
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed Dec 18, 2024
1 parent 9be7cfb commit c0ddc12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
list-determinate-shells:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -37,11 +34,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: ./
- name: Make the nix command fail
- name: Test with another local shell target
uses: ./
with:
arguments: --a-bad-flag
arguments: ./#notDefault
- run: which shfmt
id: should-fail
continue-on-error: true
- name: Fail if the action succeeded when the nix command failed
Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
default = pkgs.mkShell {
packages = [pkgs.shfmt pkgs.shellcheck pkgs.actionlint];
};
notDefault = pkgs.mkShell {
packages = [pkgs.cowsay];
};
});
checks = eachSystem ({
pkgs,
Expand Down

0 comments on commit c0ddc12

Please sign in to comment.