Skip to content

Commit 06d91fd

Browse files
committed
fix: Fix types
1 parent 25c3d73 commit 06d91fd

File tree

5 files changed

+5
-17
lines changed

5 files changed

+5
-17
lines changed

lib/internal/env.spec.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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
});

lib/package/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export type Env = {
2-
[key: string]: string | number | boolean;
2+
[key: string]: string;
33
};

lib/package/job.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
],

lib/package/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

lib/package/step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)