Skip to content

Commit c0ddc12

Browse files
committed
Test local non-default target
1 parent 9be7cfb commit c0ddc12

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
on:
22
pull_request:
33
push:
4-
branches:
5-
- main
6-
- 'releases/*'
74
jobs:
85
list-determinate-shells:
96
runs-on: ubuntu-22.04
@@ -37,11 +34,11 @@ jobs:
3734
steps:
3835
- uses: actions/checkout@v4
3936
- uses: cachix/install-nix-action@v30
40-
- uses: ./
41-
- name: Make the nix command fail
37+
- name: Test with another local shell target
4238
uses: ./
4339
with:
44-
arguments: --a-bad-flag
40+
arguments: ./#notDefault
41+
- run: which shfmt
4542
id: should-fail
4643
continue-on-error: true
4744
- name: Fail if the action succeeded when the nix command failed

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
default = pkgs.mkShell {
2525
packages = [pkgs.shfmt pkgs.shellcheck pkgs.actionlint];
2626
};
27+
notDefault = pkgs.mkShell {
28+
packages = [pkgs.cowsay];
29+
};
2730
});
2831
checks = eachSystem ({
2932
pkgs,

0 commit comments

Comments
 (0)