Skip to content

Commit 43bb564

Browse files
committed
Run CI on Windows too.
1 parent 3a356b4 commit 43bb564

2 files changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/master.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
jobs:
88
master:
99
name: Build, Lint & Test
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
1115

1216
steps:
1317
- name: Checkout code
@@ -34,16 +38,22 @@ jobs:
3438
- name: Build extension
3539
run: npm run build
3640

37-
- name: Install system dependencies
41+
- name: Install system dependencies (Linux)
42+
if: runner.os == 'Linux'
3843
run: |
3944
sudo apt-get update -qq
4045
sudo apt-get install -y --no-install-recommends xvfb
4146
4247
- name: Install Playwright browsers
4348
run: npx playwright install --with-deps chromium
4449

45-
- name: Run integration tests
46-
run: xvfb-run --auto-servernum npm run test:integration:ci
50+
- name: Run integration tests (Linux)
51+
if: runner.os == 'Linux'
52+
run: xvfb-run --auto-servernum npm run integration:ci
53+
54+
- name: Run integration tests (Windows)
55+
if: runner.os == 'Windows'
56+
run: npm run integration:ci
4757

4858
- name: Build extension (production)
4959
run: npm run build:prod

.github/workflows/pr.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
jobs:
88
pr:
99
name: Build, Lint & Test
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
1115

1216
steps:
1317
- name: Checkout code
@@ -34,16 +38,22 @@ jobs:
3438
- name: Build extension
3539
run: npm run build
3640

37-
- name: Install system dependencies
41+
- name: Install system dependencies (Linux)
42+
if: runner.os == 'Linux'
3843
run: |
3944
sudo apt-get update -qq
4045
sudo apt-get install -y --no-install-recommends xvfb
4146
4247
- name: Install Playwright browsers
4348
run: npx playwright install --with-deps chromium
4449

45-
- name: Run integration tests
46-
run: xvfb-run --auto-servernum npm run test:integration:ci
50+
- name: Run integration tests (Linux)
51+
if: runner.os == 'Linux'
52+
run: xvfb-run --auto-servernum npm run integration:ci
53+
54+
- name: Run integration tests (Windows)
55+
if: runner.os == 'Windows'
56+
run: npm run integration:ci
4757

4858
- name: Build extension (production)
4959
run: npm run build:prod

0 commit comments

Comments
 (0)