mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 07:11:00 +02:00
Split integration tests into per-browser jobs
This commit is contained in:
parent
a1b7d0feb5
commit
e656b8336f
12
.github/workflows/integration_tests.yml
vendored
12
.github/workflows/integration_tests.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user