@@ -48,6 +48,18 @@ describe("stepJSON", () => {
4848 } ,
4949 { "continue-on-error" : "${{ foo }}" , run : "echo 'Hello, world!'" } ,
5050 ] ,
51+ [
52+ { kind : "run" , timeoutMinutes : 10 , command : "echo 'Hello, world!'" } ,
53+ { "timeout-minutes" : 10 , run : "echo 'Hello, world!'" } ,
54+ ] ,
55+ [
56+ {
57+ kind : "run" ,
58+ timeoutMinutes : "${{ foo }}" ,
59+ command : "echo 'Hello, world!'" ,
60+ } ,
61+ { "timeout-minutes" : "${{ foo }}" , run : "echo 'Hello, world!'" } ,
62+ ] ,
5163 ] ) ( "stepJSON(%j) -> %j" , ( input , expected ) => {
5264 expect ( stepJSON ( input ) ) . toEqual ( expected ) ;
5365 } ) ;
@@ -95,6 +107,18 @@ describe("stepJSON", () => {
95107 } ,
96108 { "continue-on-error" : "${{ foo }}" , uses : "actions/checkout@v4" } ,
97109 ] ,
110+ [
111+ { kind : "uses" , timeoutMinutes : 10 , action : "actions/checkout@v4" } ,
112+ { "timeout-minutes" : 10 , uses : "actions/checkout@v4" } ,
113+ ] ,
114+ [
115+ {
116+ kind : "uses" ,
117+ timeoutMinutes : "${{ foo }}" ,
118+ action : "actions/checkout@v4" ,
119+ } ,
120+ { "timeout-minutes" : "${{ foo }}" , uses : "actions/checkout@v4" } ,
121+ ] ,
98122 ] ) ( "stepJSON(%j) -> %j" , ( input , expected ) => {
99123 expect ( stepJSON ( input ) ) . toEqual ( expected ) ;
100124 } ) ;
0 commit comments