Skip to content

Commit eb08061

Browse files
test: cross platform regex for combinedPaths.
1 parent 44b7a9a commit eb08061

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/playwright.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,28 @@ jobs:
3535
packages/playwright/playwright-report
3636
if-no-files-found: ignore
3737
retention-days: 7
38+
e2e-windows:
39+
runs-on: windows-latest
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4.2.2
43+
- name: Setup Node
44+
uses: actions/setup-node@v4.3.0
45+
with:
46+
node-version: '24.11.1'
47+
- name: Install Dependencies
48+
run: npm ci
49+
- name: Install Playwright Browsers
50+
run: npx playwright install --with-deps chromium webkit
51+
- name: Run Playwright
52+
run: npm run test:e2e
53+
- name: Upload Playwright artifacts
54+
if: always()
55+
uses: actions/upload-artifact@v4.4.3
56+
with:
57+
name: playwright-artifacts-windows
58+
path: |
59+
packages/playwright/test-results
60+
packages/playwright/playwright-report
61+
if-no-files-found: ignore
62+
retention-days: 7

packages/playwright/rspack.mode.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default async () => ({
217217
plugins: [
218218
knightedCssResolverPlugin({
219219
debug: debugResolver,
220-
combinedPaths: ['src/mode/declaration-hashed'],
220+
combinedPaths: [/[/\\]src[/\\]mode[/\\]declaration-hashed([/\\]|$)/],
221221
strictSidecar: true,
222222
manifestPath: strictManifestPath,
223223
}),

0 commit comments

Comments
 (0)