File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
pull_request :
3
3
push :
4
- branches :
5
- - main
6
- - ' releases/*'
7
4
jobs :
8
5
list-determinate-shells :
9
6
runs-on : ubuntu-22.04
@@ -37,11 +34,11 @@ jobs:
37
34
steps :
38
35
- uses : actions/checkout@v4
39
36
- uses : cachix/install-nix-action@v30
40
- - uses : ./
41
- - name : Make the nix command fail
37
+ - name : Test with another local shell target
42
38
uses : ./
43
39
with :
44
- arguments : --a-bad-flag
40
+ arguments : ./#notDefault
41
+ - run : which shfmt
45
42
id : should-fail
46
43
continue-on-error : true
47
44
- name : Fail if the action succeeded when the nix command failed
Original file line number Diff line number Diff line change 24
24
default = pkgs . mkShell {
25
25
packages = [ pkgs . shfmt pkgs . shellcheck pkgs . actionlint ] ;
26
26
} ;
27
+ notDefault = pkgs . mkShell {
28
+ packages = [ pkgs . cowsay ] ;
29
+ } ;
27
30
} ) ;
28
31
checks = eachSystem ( {
29
32
pkgs ,
You can’t perform that action at this time.
0 commit comments