Skip to content

Commit ba1044d

Browse files
Add Linux to CI test matrix
Run tests on both macOS and Linux to verify visual tests work with single baseline across platforms. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ed48449 commit ba1044d

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ concurrency:
1313

1414
jobs:
1515
test:
16-
runs-on: macos-latest
16+
strategy:
17+
matrix:
18+
os: [macos-latest, ubuntu-latest]
19+
runs-on: ${{ matrix.os }}
1720
timeout-minutes: 15
1821

1922
steps:
@@ -28,10 +31,8 @@ jobs:
2831

2932
- name: Log environment versions
3033
run: |
31-
echo "macOS: $(sw_vers -productVersion)"
34+
echo "OS: ${{ matrix.os }}"
3235
echo "Node: $(node --version)"
33-
echo "Chrome: $(/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version)"
34-
echo "Firefox: $(/Applications/Firefox.app/Contents/MacOS/firefox --version)"
3536
3637
- name: Install dependencies
3738
run: npm ci
@@ -40,8 +41,8 @@ jobs:
4041
id: playwright-cache
4142
uses: actions/cache@v4
4243
with:
43-
path: ~/Library/Caches/ms-playwright
44-
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
44+
path: ${{ matrix.os == 'macos-latest' && '~/Library/Caches/ms-playwright' || '~/.cache/ms-playwright' }}
45+
key: playwright-${{ matrix.os }}-${{ hashFiles('package-lock.json') }}
4546

4647
- name: Install Playwright browsers
4748
if: steps.playwright-cache.outputs.cache-hit != 'true'
@@ -62,23 +63,23 @@ jobs:
6263
- name: Upload Chrome extension
6364
uses: actions/upload-artifact@v4
6465
with:
65-
name: chrome-extension
66+
name: chrome-extension-${{ matrix.os }}
6667
path: build/bundle/*.zip
6768
retention-days: 7
6869

6970
- name: Upload Playwright report
7071
uses: actions/upload-artifact@v4
7172
if: always()
7273
with:
73-
name: playwright-report
74+
name: playwright-report-${{ matrix.os }}
7475
path: playwright-report/
7576
retention-days: 7
7677

7778
- name: Upload test results
7879
uses: actions/upload-artifact@v4
7980
if: always()
8081
with:
81-
name: test-results
82+
name: test-results-${{ matrix.os }}
8283
path: test-results/
8384
retention-days: 7
8485
if-no-files-found: ignore

0 commit comments

Comments
 (0)