Skip to content

Commit ba7ec82

Browse files
Add Windows to CI test matrix
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 09f5e35 commit ba7ec82

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
test:
1616
strategy:
1717
matrix:
18-
os: [macos-latest, ubuntu-latest]
18+
os: [macos-latest, ubuntu-latest, windows-latest]
1919
runs-on: ${{ matrix.os }}
2020
timeout-minutes: 15
2121

@@ -41,7 +41,7 @@ jobs:
4141
id: playwright-cache
4242
uses: actions/cache@v4
4343
with:
44-
path: ${{ matrix.os == 'macos-latest' && '~/Library/Caches/ms-playwright' || '~/.cache/ms-playwright' }}
44+
path: ${{ matrix.os == 'macos-latest' && '~/Library/Caches/ms-playwright' || (matrix.os == 'windows-latest' && '~/AppData/Local/ms-playwright' || '~/.cache/ms-playwright') }}
4545
key: playwright-${{ matrix.os }}-${{ hashFiles('package-lock.json') }}
4646

4747
- name: Install Playwright browsers

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
expect: {
1919
toHaveScreenshot: {
2020
// 2% threshold: tolerates system font differences across platforms
21-
// (macOS uses San Francisco, Linux uses Noto Sans/DejaVu)
21+
// (macOS: San Francisco, Linux: Noto Sans/DejaVu, Windows: Segoe UI)
2222
maxDiffPixelRatio: 0.02,
2323
// Per-pixel threshold: allow slight color variance from anti-aliasing
2424
threshold: 0.2,

0 commit comments

Comments
 (0)