Skip to content

Commit 1a5e2f6

Browse files
KallinikosMilclaudedannyhw
authored
ci: run the main test matrix on windows-latest as well (#1458)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Daniel Williams <dannyhyunsoowilliams@gmail.com> Co-authored-by: Daniel Williams <me@dannyhw.com>
1 parent aed9c75 commit 1a5e2f6

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/test-main-matrix.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@ permissions:
1212

1313
jobs:
1414
test_main_matrix:
15-
name: Tests [Node ${{ matrix.node_version }}]
15+
name: Tests [${{ matrix.os }}, Node ${{ matrix.node_version }}]
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
node_version: ['18', '20', '22', '24', '26']
2121
os: [ubuntu-latest]
22+
include:
23+
# tests/integration and @callstack/repack-expo are not green on Windows
24+
# yet, so those two workspaces are excluded there until they are. Every
25+
# other workspace passes on Windows and stays covered.
26+
- os: windows-latest
27+
node_version: '24'
28+
filter: --filter=!integration-test --filter=!@callstack/repack-expo
2229

2330
steps:
2431
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
@@ -28,4 +35,4 @@ jobs:
2835
node-version: ${{ matrix.node_version }}
2936

3037
- name: Run tests
31-
run: pnpm test
38+
run: pnpm turbo run test ${{ matrix.filter }}

‎packages/repack/src/commands/webpack/__tests__/Compiler.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { EventEmitter } from 'node:events';
2+
import path from 'node:path';
23
import { Worker } from 'node:worker_threads';
34
import { fs, vol } from 'memfs';
45
import type { Reporter } from '../../../logging/types.js';
@@ -109,6 +110,9 @@ describe('getSource', () => {
109110
await expect(
110111
createCompiler().getSource('src/index.js', 'ios')
111112
).resolves.toBe('source under the project root');
112-
expect(readFile).toHaveBeenCalledWith('/project/src/index.js', 'utf8');
113+
expect(readFile).toHaveBeenCalledWith(
114+
path.join('/project', 'src/index.js'),
115+
'utf8'
116+
);
113117
});
114118
});

0 commit comments

Comments
 (0)