chore: namespace commands (#8494)

This commit is contained in:
jrandolf
2022-06-10 11:55:53 +02:00
committed by GitHub
parent 465a7c405f
commit 75c3f94a54
19 changed files with 73 additions and 317 deletions

View File

@@ -49,13 +49,13 @@ jobs:
- name: Run code checks
run: |
npm run ensure-pinned-deps
npm run test:pinned-deps
npm run lint
# Skipping as it's flakey and we are not currently using the new documentation site in the wild yet.
# See https://github.com/puppeteer/puppeteer/issues/7710 for more info
# npm run generate-docs
npm run ensure-correct-devtools-protocol-revision
npm run test-types-file
# npm run generate:docs
npm run test:protocol-revision
npm run test:types
- name: Run commit lint
run: |
@@ -68,15 +68,15 @@ jobs:
CHROMIUM: true
with:
max_attempts: 3
command: xvfb-run --auto-servernum npm run unit
command: xvfb-run --auto-servernum npm run test:unit
timeout_minutes: 10
- name: Run unit tests with coverage
env:
CHROMIUM: true
run: |
xvfb-run --auto-servernum npm run unit-with-coverage
xvfb-run --auto-servernum npm run assert-unit-coverage
xvfb-run --auto-servernum npm run test:unit:coverage
xvfb-run --auto-servernum npm run test:coverage
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
@@ -86,18 +86,14 @@ jobs:
with:
max_attempts: 3
timeout_minutes: 10
command: xvfb-run --auto-servernum npm run funit
- name: Run browser tests
run: |
npm run test-browser
command: xvfb-run --auto-servernum npm run test:unit:firefox
- name: Test bundling and installation
env:
CHROMIUM: true
run: |
# Note: this modifies package.json to test puppeteer-core.
npm run test-install
npm run test:install
# Undo those changes.
git checkout --force
@@ -133,14 +129,14 @@ jobs:
env:
CHROMIUM: true
run: |
npm run unit
npm run test:unit
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
with:
max_attempts: 3
timeout_minutes: 10
command: npm run funit
command: npm run test:unit:firefox
windows:
# https://github.com/actions/virtual-environments#available-environments
@@ -176,7 +172,7 @@ jobs:
env:
CHROMIUM: true
run: |
npm run unit
npm run test:unit
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
@@ -187,7 +183,7 @@ jobs:
with:
max_attempts: 3
timeout_minutes: 10
command: npm run funit
command: npm run test:unit:firefox
linux-headful:
# https://github.com/actions/virtual-environments#available-environments
@@ -226,7 +222,7 @@ jobs:
HEADLESS: false
with:
max_attempts: 1
command: xvfb-run --auto-servernum npm run unit
command: xvfb-run --auto-servernum npm run test:unit
timeout_minutes: 10
chrome-headless:
@@ -261,5 +257,5 @@ jobs:
CHROMIUM: true
with:
max_attempts: 1
command: npm run chrome-headless-unit
command: npm run test:unit:chrome-headless
timeout_minutes: 30