2021-05-12 03:25:05 +03:00
|
|
|
name: "tests 1"
|
2021-05-12 03:01:02 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-12-08 09:58:33 +03:00
|
|
|
- main
|
2021-05-12 03:01:02 +03:00
|
|
|
- release-*
|
|
|
|
pull_request:
|
2021-05-12 03:25:05 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'browser_patches/**'
|
2021-06-01 23:55:48 +03:00
|
|
|
- 'docs/**'
|
2021-05-12 03:01:02 +03:00
|
|
|
branches:
|
2021-12-08 09:58:33 +03:00
|
|
|
- main
|
2021-05-12 03:01:02 +03:00
|
|
|
- release-*
|
|
|
|
|
2022-03-24 03:16:32 +03:00
|
|
|
concurrency:
|
|
|
|
# For pull requests, cancel all currently-running jobs for this workflow
|
|
|
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-05-12 03:01:02 +03:00
|
|
|
env:
|
|
|
|
# Force terminal colors. @see https://www.npmjs.com/package/colors
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
FLAKINESS_CONNECTION_STRING: ${{ secrets.FLAKINESS_CONNECTION_STRING }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_linux:
|
2022-04-26 17:59:47 +03:00
|
|
|
name: ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
|
2021-05-12 03:01:02 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2022-08-03 22:34:41 +03:00
|
|
|
os: [ubuntu-22.04]
|
2022-04-26 17:59:47 +03:00
|
|
|
node-version: [14]
|
|
|
|
include:
|
2022-08-03 22:34:41 +03:00
|
|
|
- os: ubuntu-22.04
|
2022-04-26 17:59:47 +03:00
|
|
|
node-version: 16
|
|
|
|
browser: chromium
|
2022-08-03 22:34:41 +03:00
|
|
|
- os: ubuntu-22.04
|
2022-04-26 17:59:47 +03:00
|
|
|
node-version: 18
|
|
|
|
browser: chromium
|
2021-05-12 03:01:02 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2021-05-12 03:01:02 +03:00
|
|
|
with:
|
2022-04-26 17:59:47 +03:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-04-26 18:52:10 +03:00
|
|
|
- run: npm i -g npm@8
|
2021-05-12 03:01:02 +03:00
|
|
|
- run: npm ci
|
2021-05-21 01:47:22 +03:00
|
|
|
env:
|
2022-09-29 22:08:28 +03:00
|
|
|
DEBUG: pw:install
|
2021-08-07 13:53:33 +03:00
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
2021-05-12 03:01:02 +03:00
|
|
|
- run: npm run build
|
2021-10-11 17:52:17 +03:00
|
|
|
- run: npx playwright install --with-deps ${{ matrix.browser }} chromium
|
2021-06-04 01:28:57 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}
|
2021-05-12 03:01:02 +03:00
|
|
|
- run: node tests/config/checkCoverage.js ${{ matrix.browser }}
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
2022-08-05 11:47:44 +03:00
|
|
|
shell: bash
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-05-12 03:01:02 +03:00
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
|
|
|
path: test-results
|
|
|
|
|
2022-04-22 19:43:57 +03:00
|
|
|
test_linux_chromium_tot:
|
|
|
|
name: ${{ matrix.os }} (chromium tip-of-tree)
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-20.04]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2022-04-22 19:43:57 +03:00
|
|
|
with:
|
2022-04-26 13:20:26 +03:00
|
|
|
node-version: 14
|
2022-04-26 18:52:10 +03:00
|
|
|
- run: npm i -g npm@8
|
2022-04-22 19:43:57 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: npx playwright install --with-deps chromium-tip-of-tree
|
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=chromium
|
|
|
|
env:
|
|
|
|
PWTEST_CHANNEL: chromium-tip-of-tree
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
2022-08-05 11:47:44 +03:00
|
|
|
shell: bash
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
2022-04-22 19:43:57 +03:00
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.browser }}-chromium-tip-of-tree-test-results
|
|
|
|
path: test-results
|
|
|
|
|
2022-03-01 09:19:15 +03:00
|
|
|
test_test_runner:
|
|
|
|
name: Test Runner
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2022-04-26 13:20:26 +03:00
|
|
|
node-version: [14]
|
2022-06-02 02:50:23 +03:00
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node-version: 16
|
|
|
|
- os: ubuntu-latest
|
|
|
|
node-version: 18
|
|
|
|
- os: windows-latest
|
|
|
|
node-version: 16
|
2022-03-01 09:19:15 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2022-03-01 09:19:15 +03:00
|
|
|
with:
|
|
|
|
node-version: ${{matrix.node-version}}
|
2022-04-26 18:52:10 +03:00
|
|
|
- run: npm i -g npm@8
|
2022-03-01 09:19:15 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
|
|
|
- run: npm run build
|
|
|
|
- run: npx playwright install --with-deps
|
|
|
|
- run: npm run ttest
|
|
|
|
if: matrix.os != 'ubuntu-latest'
|
|
|
|
- run: xvfb-run npm run ttest
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
2022-04-01 01:56:28 +03:00
|
|
|
shell: bash
|
2022-03-01 09:19:15 +03:00
|
|
|
|
2022-03-29 23:27:37 +03:00
|
|
|
test_web_components:
|
|
|
|
name: Web Components
|
2021-12-14 05:30:48 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2021-12-14 05:30:48 +03:00
|
|
|
with:
|
2022-04-26 17:59:47 +03:00
|
|
|
# Component tests require Node.js 16+ (they require ESM via TS)
|
|
|
|
node-version: 16
|
2022-04-26 18:52:10 +03:00
|
|
|
- run: npm i -g npm@8
|
2021-12-14 05:30:48 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
|
|
|
- run: npm run build
|
|
|
|
- run: npx playwright install --with-deps
|
2023-01-25 01:00:10 +03:00
|
|
|
- run: xvfb-run npm run test-html-reporter
|
2022-03-29 23:27:37 +03:00
|
|
|
- run: xvfb-run npm run test-web
|
2022-09-15 01:44:13 +03:00
|
|
|
if: always()
|
2022-05-03 22:48:35 +03:00
|
|
|
|
|
|
|
test-package-installations:
|
|
|
|
name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
|
|
|
- windows-latest
|
|
|
|
node_version:
|
2022-06-08 04:11:58 +03:00
|
|
|
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
|
2022-05-03 22:48:35 +03:00
|
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2022-05-03 22:48:35 +03:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node_version }}
|
2022-08-11 01:33:47 +03:00
|
|
|
- run: npm i -g npm@8
|
2022-05-03 22:48:35 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
|
|
|
- run: npm run build
|
|
|
|
- run: npx playwright install-deps
|
|
|
|
- run: npm run itest
|
|
|
|
if: matrix.os != 'ubuntu-latest'
|
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run itest
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2022-05-07 05:04:34 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
shell: bash
|
2022-09-15 01:05:18 +03:00
|
|
|
|