Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: run tests on ubuntu 22 (#14741)

Max Schmittdeaef17e7011
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index 4c38bfed2b..6e0233e12b 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -31,7 +31,7 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
- os: [ubuntu-20.04]
+ os: [ubuntu-20.04, ubuntu-22.04]
node-version: [14]
include:
- os: ubuntu-20.04
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index 6ed1f9178e..2b353425f7 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -146,7 +146,7 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
- os: [ubuntu-latest, macos-latest, windows-latest]
+ os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
@@ -161,14 +161,14 @@ jobs:
- 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 }} --headed
- if: always() && matrix.os == 'ubuntu-latest'
+ if: always() && startsWith(matrix.os, 'ubuntu-')
- run: npm run test -- --project=${{ matrix.browser }} --headed
- if: always() && matrix.os != 'ubuntu-latest'
+ if: always() && !startsWith(matrix.os, 'ubuntu-')
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
if: always()
shell: bash
- uses: actions/upload-artifact@v1
- if: always() && matrix.os == 'ubuntu-latest'
+ if: always() && startsWith(matrix.os, 'ubuntu-')
with:
name: headful-${{ matrix.browser }}-linux-test-results
path: test-results
diff --git a/.github/workflows/tests_video.yml b/.github/workflows/tests_video.yml
index eb22ce519f..42f8b6bcd7 100644
--- a/.github/workflows/tests_video.yml
+++ b/.github/workflows/tests_video.yml
@@ -18,7 +18,8 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
- runs-on: ubuntu-20.04
+ os: [ubuntu-20.04, ubuntu-22.04]
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2