mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: add headful mode tests (#8265)
This commit is contained in:
parent
351d1466b8
commit
60ec89a90b
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@ -184,3 +184,41 @@ jobs:
|
||||
max_attempts: 3
|
||||
timeout_minutes: 10
|
||||
command: npm run funit
|
||||
|
||||
linux-headful-checks:
|
||||
# https://github.com/actions/virtual-environments#available-environments
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node: [16]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3.1.1
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install xvfb
|
||||
npm install
|
||||
ls .local-chromium
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm run build
|
||||
|
||||
- name: Run unit tests in headful mode
|
||||
uses: nick-invision/retry@v2
|
||||
continue-on-error: true
|
||||
env:
|
||||
CHROMIUM: true
|
||||
HEADLESS: false
|
||||
with:
|
||||
max_attempts: 1
|
||||
command: xvfb-run --auto-servernum npm run unit
|
||||
timeout_minutes: 10
|
||||
|
Loading…
Reference in New Issue
Block a user