Split integration tests into per-browser jobs

This commit is contained in:
calixteman 2026-04-27 22:24:22 +02:00
parent a1b7d0feb5
commit e656b8336f
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F

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