mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: run test-runner tests on Node 16 (#12359)
This commit is contained in:
parent
b47c95c20c
commit
8292fe8940
50
.github/workflows/test_test_runner.yml
vendored
Normal file
50
.github/workflows/test_test_runner.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: "Test Runner"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- release-*
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/test_test_runner.yml"
|
||||||
|
- "!browser_patches/**"
|
||||||
|
- "!docs/**"
|
||||||
|
- "tests/playwright-test/**/*"
|
||||||
|
- "packages/playwright-test/**/*"
|
||||||
|
- "package.json"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- release-*
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/test_test_runner.yml"
|
||||||
|
- "!browser_patches/**"
|
||||||
|
- "!docs/**"
|
||||||
|
- "tests/playwright-test/**/*"
|
||||||
|
- "packages/playwright-test/**/*"
|
||||||
|
- "package.json"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
node-version: [12, 16]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{matrix.node-version}}
|
||||||
|
- run: npm i -g npm@8.3
|
||||||
|
- 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'
|
||||||
27
.github/workflows/tests_primary.yml
vendored
27
.github/workflows/tests_primary.yml
vendored
@ -49,33 +49,6 @@ jobs:
|
|||||||
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
||||||
path: test-results
|
path: test-results
|
||||||
|
|
||||||
test_test_runner:
|
|
||||||
name: Test Runner
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
||||||
node-version: [12]
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
node-version: 16
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: ${{matrix.node-version}}
|
|
||||||
- run: npm i -g npm@8.3
|
|
||||||
- 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'
|
|
||||||
|
|
||||||
test_html_report:
|
test_html_report:
|
||||||
name: HTML Report
|
name: HTML Report
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user