diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml index 8a49cfafe4..063304b215 100644 --- a/.github/workflows/tests_secondary.yml +++ b/.github/workflows/tests_secondary.yml @@ -140,13 +140,14 @@ jobs: if: always() shell: bash - headful_linux: - name: "Headful Linux" + headed_linux: + name: "headed ${{ matrix.browser }} (${{ matrix.os }})" strategy: fail-fast: false matrix: browser: [chromium, firefox, webkit] - runs-on: ubuntu-20.04 + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -159,14 +160,14 @@ jobs: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 - run: npm run build - run: npx playwright install --with-deps ${{ matrix.browser }} chromium - - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }} - if: ${{ always() }} - env: - HEADFUL: 1 + - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }} --headed + if: always() && matrix.os == 'ubuntu-latest' + - run: npm run test -- --project=${{ matrix.browser }} --headed + if: always() && matrix.os != 'ubuntu-latest' - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json - if: always() + if: always() && matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v1 - if: ${{ always() }} + if: always() && matrix.os == 'ubuntu-latest' with: name: headful-${{ matrix.browser }}-linux-test-results path: test-results diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts index 679a84738e..b8d33a3c24 100644 --- a/tests/library/playwright.config.ts +++ b/tests/library/playwright.config.ts @@ -49,6 +49,7 @@ const config: Config