mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix esbuild problem (#9820)
This commit is contained in:
parent
58f65abb9c
commit
7f05d441d5
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
4
.github/workflows/tot-ci.yml
vendored
4
.github/workflows/tot-ci.yml
vendored
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user