Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
is-high-risk-environment: false
node-version: ${{ matrix.node-version }}
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
PLAYWRIGHT_ONLY_SHELL: 1
- run: yarn build
- run: "yarn test --coverage=${{ matrix.node-version == '24.x' && 'true' || 'false' }}"
- name: Upload coverage artifact
Expand Down
24 changes: 20 additions & 4 deletions scripts/playwright-install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
#!/bin/bash

# Skip in Dependabot PRs (native builds aren't needed and may fail)
if [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then
echo "⏭️ Skipping native rebuild in Dependabot PR"
# Skip in Dependabot environments (not needed and causes failures)
# DEPENDABOT is set in the updater environment, GITHUB_ACTOR in PR workflows
if [ -n "$DEPENDABOT" ] || [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then
echo "⏭️ Skipping Playwright install in Dependabot environment"
exit 0
fi

yarn playwright install chromium
# Also respect PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD for CI environments
if [ "$PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD" = "1" ]; then
echo "⏭️ Skipping Playwright install (PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1)"
exit 0
fi

# Install Chromium (with system deps in CI, headless shell only if requested)
if [ "$CI" = "true" ]; then
if [ "$PLAYWRIGHT_ONLY_SHELL" = "1" ]; then
yarn playwright install --with-deps --only-shell chromium
else
yarn playwright install --with-deps chromium
fi
else
yarn playwright install chromium
fi
7 changes: 4 additions & 3 deletions scripts/rebuild-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
# This checks if artifacts already exist to avoid unnecessary rebuilds.
# Pass --force or -f to rebuild even if build artifacts already exist.

# Skip in Dependabot PRs (native builds aren't needed and may fail)
if [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then
echo "⏭️ Skipping native rebuild in Dependabot PR"
# Skip in Dependabot environments (native builds aren't needed and may fail)
# DEPENDABOT is set in the updater environment, GITHUB_ACTOR in PR workflows
if [ -n "$DEPENDABOT" ] || [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then
echo "⏭️ Skipping native rebuild in Dependabot environment"
exit 0
fi

Expand Down
Loading