Skip to content

Commit e66fdfb

Browse files
Merge pull request #21179 from calixteman/split_unit_test-per_browser
Split integration tests into per-browser jobs
2 parents f4e24f7 + e656b83 commit e66fdfb

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ permissions:
2626

2727
jobs:
2828
test:
29-
name: Test
29+
name: ${{ matrix.os }} / ${{ matrix.browser }}
3030

3131
strategy:
3232
fail-fast: false
3333
matrix:
3434
node-version: [lts/*]
3535
os: [windows-latest, ubuntu-latest]
36+
browser: [firefox, chrome]
37+
include:
38+
- browser: firefox
39+
skip: --noChrome
40+
- browser: chrome
41+
skip: --noFirefox
3642

3743
runs-on: ${{ matrix.os }}
3844

@@ -71,11 +77,11 @@ jobs:
7177

7278
- name: Run integration tests (Windows)
7379
if: ${{ matrix.os == 'windows-latest' }}
74-
run: npx gulp integrationtest
80+
run: npx gulp integrationtest ${{ matrix.skip }}
7581

7682
- name: Run integration tests (Linux)
7783
if: ${{ matrix.os == 'ubuntu-latest' }}
78-
run: xvfb-run -a --server-args="-screen 0, 1920x1080x24" npx gulp integrationtest
84+
run: xvfb-run -a --server-args="-screen 0, 1920x1080x24" npx gulp integrationtest ${{ matrix.skip }}
7985

8086
- name: Save cached PDF files
8187
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5

0 commit comments

Comments
 (0)