@@ -36,6 +36,18 @@ describe("stepJSON", () => {
3636 { kind : "run" , if : "always()" , command : "echo 'Hello, world!'" } ,
3737 { if : "always()" , run : "echo 'Hello, world!'" } ,
3838 ] ,
39+ [
40+ { kind : "run" , continueOnError : true , command : "echo 'Hello, world!'" } ,
41+ { "continue-on-error" : true , run : "echo 'Hello, world!'" } ,
42+ ] ,
43+ [
44+ {
45+ kind : "run" ,
46+ continueOnError : "${{ foo }}" ,
47+ command : "echo 'Hello, world!'" ,
48+ } ,
49+ { "continue-on-error" : "${{ foo }}" , run : "echo 'Hello, world!'" } ,
50+ ] ,
3951 ] ) ( "stepJSON(%j) -> %j" , ( input , expected ) => {
4052 expect ( stepJSON ( input ) ) . toEqual ( expected ) ;
4153 } ) ;
@@ -71,6 +83,18 @@ describe("stepJSON", () => {
7183 { kind : "uses" , if : "always()" , action : "actions/checkout@v4" } ,
7284 { if : "always()" , uses : "actions/checkout@v4" } ,
7385 ] ,
86+ [
87+ { kind : "uses" , continueOnError : true , action : "actions/checkout@v4" } ,
88+ { "continue-on-error" : true , uses : "actions/checkout@v4" } ,
89+ ] ,
90+ [
91+ {
92+ kind : "uses" ,
93+ continueOnError : "${{ foo }}" ,
94+ action : "actions/checkout@v4" ,
95+ } ,
96+ { "continue-on-error" : "${{ foo }}" , uses : "actions/checkout@v4" } ,
97+ ] ,
7498 ] ) ( "stepJSON(%j) -> %j" , ( input , expected ) => {
7599 expect ( stepJSON ( input ) ) . toEqual ( expected ) ;
76100 } ) ;
0 commit comments