Merge pull request #21179 from calixteman/split_unit_test-per_browser

Split integration tests into per-browser jobs
This commit is contained in:
Tim van der Meij 2026-04-28 13:15:00 +02:00 committed by GitHub
commit e66fdfb6db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,13 +26,19 @@ permissions:
jobs:
test:
name: Test
name: ${{ matrix.os }} / ${{ matrix.browser }}
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [windows-latest, ubuntu-latest]
browser: [firefox, chrome]
include:
- browser: firefox
skip: --noChrome
- browser: chrome
skip: --noFirefox
runs-on: ${{ matrix.os }}
@ -71,11 +77,11 @@ jobs:
- name: Run integration tests (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: npx gulp integrationtest
run: npx gulp integrationtest ${{ matrix.skip }}
- name: Run integration tests (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: xvfb-run -a --server-args="-screen 0, 1920x1080x24" npx gulp integrationtest
run: xvfb-run -a --server-args="-screen 0, 1920x1080x24" npx gulp integrationtest ${{ matrix.skip }}
- name: Save cached PDF files
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5