fix: unbreak installation tests, include in primary CI runs (#13903)

This commit is contained in:
Ross Wollman 2022-05-03 12:48:35 -07:00 committed by GitHub
parent 0901588ed2
commit c4af7f2fc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 8 deletions

View file

@ -164,3 +164,32 @@ jobs:
if: always() && matrix.os != 'ubuntu-latest'
- run: xvfb-run npm run test-web
if: always() && matrix.os == 'ubuntu-latest'
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:
- "^18.0.0"
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- run: npm i -g npm@8
- 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'

View file

@ -109,18 +109,12 @@ jobs:
name: ${{ matrix.browser }}-win-test-results
path: test-results
test-package-installations:
test-package-installations-older-node-versions:
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:
- "^18.0.0"
include:
- os: ubuntu-latest
node_version: "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)

View file

@ -28,7 +28,7 @@ const { start } = require('./node_modules/playwright-core/lib/outofprocess');
await browser.close();
console.log(`${browserType} SUCCESS`);
} catch (e) {
console.error(`Should be able to launch ${browserType} from ${requireName}`);
console.error(`Should be able to launch ${browserType} from ${process.cwd()}`);
console.error(e);
process.exit(1);
}

View file

@ -25,6 +25,7 @@ const config: PlaywrightTestConfig = {
plugins: [
gitCommitInfo(),
],
globalSetup: path.join(__dirname, 'globalSetup'),
testIgnore: '**\/fixture-scripts/**',
timeout: 5 * 60 * 1000,
retries: 0,