chore: fix esbuild problem (#9820)

This commit is contained in:
Alex Rudenko 2023-03-10 08:52:48 +01:00 committed by GitHub
parent 58f65abb9c
commit 7f05d441d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 13 deletions

View File

@ -30,7 +30,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Check code
run: npm run check
- name: Lint code
@ -126,7 +128,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build packages
run: npm run build --workspace @puppeteer-test/test
- name: Setup cache for Chromium binary
@ -182,7 +186,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build packages
run: npm run build --workspace @puppeteer-test/test
- name: Setup cache for Firefox binary
@ -230,7 +236,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build installation test
run: npm run build --workspace @puppeteer-test/installation
- name: Pack installation test
@ -310,7 +318,9 @@ jobs:
cache: npm
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build packages
run: npm run build --workspace puppeteer
- name: Pack packages
@ -338,7 +348,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Run tests
run: npm run test --workspace @puppeteer/ng-schematics
@ -363,7 +375,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Run tests
run: npm run test --workspace @puppeteer/browsers

View File

@ -18,7 +18,9 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3.0.2
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build packages
run: npm run build
- name: Set npm registry
@ -51,7 +53,9 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3.0.2
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build packages
run: npm run build
- name: Pack packages for docker

View File

@ -34,7 +34,9 @@ jobs:
cache: npm
node-version: latest
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Install linux dependencies.
run: sudo apt-get install xvfb
- name: Build packages

View File

@ -35,6 +35,9 @@ if (!fs.existsSync(path.join(__dirname, 'lib'))) {
execSync('npm run build --workspace puppeteer');
}
const {downloadBrowser} = require('puppeteer/internal/node/install.js');
downloadBrowser();
try {
const {downloadBrowser} = require('puppeteer/internal/node/install.js');
downloadBrowser();
} catch (err) {
console.warn('Browser download failed', err);
}