Skip to content

Commit 5077baa

Browse files
committed
ci: keep windows script parity on push
1 parent 0ffd3c7 commit 5077baa

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
name: Test on Node.js ${{ matrix.node-version }}
@@ -94,6 +97,26 @@ jobs:
9497
- name: Verify vendor provenance
9598
run: npm run vendor:verify
9699

100+
scripts-windows:
101+
name: Script Typecheck (Windows)
102+
runs-on: windows-latest
103+
104+
steps:
105+
- name: Checkout code
106+
uses: actions/checkout@v4
107+
108+
- name: Setup Node.js
109+
uses: actions/setup-node@v4
110+
with:
111+
node-version: 20.x
112+
cache: npm
113+
114+
- name: Install dependencies
115+
run: npm ci
116+
117+
- name: Typecheck scripts
118+
run: npm run typecheck:scripts
119+
97120
codex-compat:
98121
name: Codex Compatibility Smoke
99122
runs-on: ubuntu-latest

test/ci-workflows.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@ describe("CI workflow parity", () => {
2323
expect(ci).toContain(command);
2424
}
2525
});
26+
27+
it("keeps Windows script typecheck coverage in push and PR CI", () => {
28+
const ci = readWorkflow("ci.yml");
29+
const prCi = readWorkflow("pr-ci.yml");
30+
31+
expect(ci).toContain("runs-on: windows-latest");
32+
expect(ci).toContain("npm run typecheck:scripts");
33+
expect(prCi).toContain("runs-on: windows-latest");
34+
expect(prCi).toContain("npm run typecheck:scripts");
35+
});
2636
});

0 commit comments

Comments
 (0)