just set option in workflows env
This commit is contained in:
2
.github/workflows/headless-tests.yml
vendored
2
.github/workflows/headless-tests.yml
vendored
@@ -57,6 +57,8 @@ jobs:
|
||||
- name: Run Playwright tests
|
||||
env:
|
||||
PLAYWRIGHT_WORKERS: ${{ fromJSON('[1, 4]')[github.repository == 'github/docs-internal'] }}
|
||||
NODE_OPTIONS: '--no-experimental-strip-types'
|
||||
|
||||
# Run playwright rendering tests and a11y tests (axe scans) as distinct checks
|
||||
# so that we can run them without blocking merges until we can be confident
|
||||
# results for a11y tests are meaningul and scenarios we're testing are correct.
|
||||
|
||||
1
.github/workflows/local-dev.yml
vendored
1
.github/workflows/local-dev.yml
vendored
@@ -50,6 +50,7 @@ jobs:
|
||||
# by default failures are marked as "flaky" instead of "failed".
|
||||
PLAYWRIGHT_RETRIES: 0
|
||||
TEST_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }}
|
||||
NODE_OPTIONS: '--no-experimental-strip-types'
|
||||
run: npm run playwright-test -- playwright-local-dev
|
||||
|
||||
- name: Start server in the background
|
||||
|
||||
Reference in New Issue
Block a user