File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
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
Original file line number Diff line number Diff line change 77jobs :
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
You can’t perform that action at this time.
0 commit comments