Skip to content

Commit 3b3b90c

Browse files
authored
Add TypeScript type checking to CI (#1789)
1 parent 5d95fff commit 3b3b90c

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ jobs:
3535
- run: node dist/index.js --help
3636
- run: head -1 dist/index.js | grep -q '#!/usr/bin/env node'
3737

38+
typecheck:
39+
runs-on: ubuntu-24.04
40+
steps:
41+
- uses: actions/checkout@v6.0.2
42+
- uses: oven-sh/setup-bun@v2.1.2
43+
with:
44+
bun-version: 1.3.10
45+
- run: bun install --frozen-lockfile
46+
- run: bun run typecheck
47+
3848
eslint:
3949
runs-on: ubuntu-24.04
4050
steps:

src/schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import schema from "./schema.json";
22

33
// Remove patterns that are too strict for gitlab-ci-local usage
4-
// @ts-expect-error ts-expect-error
54
delete schema.definitions.include_item.oneOf[0].pattern; // include shorthand rejects glob wildcards
6-
// @ts-expect-error ts-expect-error
75
delete schema.definitions.cache_item.properties.key.oneOf[0].pattern; // cache key rejects paths with /
86
// @ts-expect-error ts-expect-error
97
delete schema.definitions.job_template.properties.environment.oneOf[1].properties.name.minLength; // environment name rejects unexpanded variables

tests/test-cases/predefined-variables/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ beforeAll(() => {
103103
if (args.length === 0) {
104104
super(_mockDate.getTime());
105105
} else {
106-
super(...args);
106+
super(...(args as [number]));
107107
}
108108
}
109109
} as any;

0 commit comments

Comments
 (0)