Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(ci): run infra checks after dependabot rebuild commit (#39853)

Yury Semikhatskya001c5fbf624
diff --git a/.github/workflows/dependabot_rebuild.yml b/.github/workflows/dependabot_rebuild.yml
index b6891d3251..7bd0a60d6e 100644
--- a/.github/workflows/dependabot_rebuild.yml
+++ b/.github/workflows/dependabot_rebuild.yml
@@ -38,3 +38,38 @@ jobs:
else
echo "No generated files changed, nothing to commit."
fi
+
+ doc-and-lint:
+ name: "docs & lint"
+ needs: rebuild
+ runs-on: ubuntu-24.04
+ if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'microsoft/playwright'
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ ref: ${{ github.head_ref }}
+ - uses: actions/setup-node@v6
+ with:
+ node-version: 20
+ - run: npm ci
+ - run: npm run build
+ - run: npx playwright install --with-deps
+ - run: npm run lint
+ - name: Verify clean tree
+ run: |
+ if [[ -n $(git status -s) ]]; then
+ echo "ERROR: tree is dirty after npm run build:"
+ git diff
+ exit 1
+ fi
+ - name: Audit prod NPM dependencies
+ run: node utils/check_audit.js
+ continue-on-error: true
+
+ lint-snippets:
+ name: "Lint snippets"
+ needs: rebuild
+ runs-on: ubuntu-latest
+ if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'microsoft/playwright'
+ steps:
+ - run: echo "Skipped for dependabot PRs"