chore(create-playwright): make it Node.js 12 compatible (#10081)

This commit is contained in:
Max Schmitt 2021-11-05 17:30:18 +01:00 committed by GitHub
parent c5b19351f6
commit 95a5c5cb79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -4,19 +4,25 @@ on:
branches: [ master ] branches: [ master ]
paths: paths:
- 'packages/create-playwright/**/*' - 'packages/create-playwright/**/*'
- '.github/workflows/package_create_playwright.yml'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths: paths:
- 'packages/create-playwright/**/*' - 'packages/create-playwright/**/*'
- '.github/workflows/package_create_playwright.yml'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 14 node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
- run: npm i -g npm@7 - run: npm i -g npm@7
- run: npm ci - run: npm ci

View file

@ -0,0 +1,3 @@
{
"extends": "../tsconfig.json"
}

View file

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2019",
"moduleResolution": "Node", "moduleResolution": "Node",
"downlevelIteration": true, "downlevelIteration": true,
"esModuleInterop": true, "esModuleInterop": true,