File tree Expand file tree Collapse file tree 5 files changed +5
-17
lines changed
Expand file tree Collapse file tree 5 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,6 @@ describe("envJSON", () => {
99 { HOGE : "hoge" , FUGA : "fuga" } ,
1010 { HOGE : "hoge" , FUGA : "fuga" } ,
1111 ] ,
12- [
13- { HOGE : "hoge" , FUGA : 123 } ,
14- { HOGE : "hoge" , FUGA : 123 } ,
15- ] ,
16- [
17- { HOGE : "hoge" , FUGA : true } ,
18- { HOGE : "hoge" , FUGA : true } ,
19- ] ,
20- [
21- { HOGE : "hoge" , FUGA : false } ,
22- { HOGE : "hoge" , FUGA : false } ,
23- ] ,
2412 ] ) ( "envJSON(%j) returns %j" , ( input , expected ) => {
2513 expect ( envJSON ( input ) ) . toEqual ( expected ) ;
2614 } ) ;
Original file line number Diff line number Diff line change 11export type Env = {
2- [ key : string ] : string | number | boolean ;
2+ [ key : string ] : string ;
33} ;
Original file line number Diff line number Diff line change @@ -122,11 +122,11 @@ describe("Job", () => {
122122 [
123123 new Job ( "with-env" , {
124124 runsOn : "ubuntu-latest" ,
125- env : { HOGE : "hoge" , FUGA : 123 } ,
125+ env : { HOGE : "hoge" , FUGA : "fuga" } ,
126126 } ) . run ( "echo 'Hello, world!'" ) ,
127127 {
128128 "runs-on" : "ubuntu-latest" ,
129- env : { HOGE : "hoge" , FUGA : 123 } ,
129+ env : { HOGE : "hoge" , FUGA : "fuga" } ,
130130 steps : [ { run : "echo 'Hello, world!'" } ] ,
131131 } ,
132132 ] ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type JobConfig = {
1818 timeoutMinutes ?: number | Expression ;
1919 outputs ?: Record < string , string > ;
2020 needs ?: string | string [ ] ;
21- if ?: string | boolean | number ;
21+ if ?: string | boolean ;
2222 environment ?: Environment ;
2323 concurrency ?: Concurrency ;
2424 env ?: Env ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export type StepBase = {
55 id ?: string ;
66 name ?: string ;
77 env ?: Record < string , string > ;
8- if ?: string | boolean | number ;
8+ if ?: string | boolean ;
99 continueOnError ?: boolean | Expression ;
1010 timeoutMinutes ?: number | Expression ;
1111} ;
You can’t perform that action at this time.
0 commit comments