尝试executablePath: /usr/bin/google-chrome
,
#2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' # 或你需要的 Node.js 版本 | |
- name: Install Chromium and Puppeteer | |
run: | | |
apt-get update | |
apt-get install -y chromium-browser | |
npm install puppeteer-core | |
env: | |
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium-browser |