Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(ci): retrigger infra checks via PR close/reopen after rebuild (#39859)
Yury Semikhatsky43015a7135f1
diff --git a/.github/workflows/dependabot_rebuild.yml b/.github/workflows/dependabot_rebuild.ymlindex 7bd0a60d6e..29a1c27b2d 100644--- a/.github/workflows/dependabot_rebuild.yml+++ b/.github/workflows/dependabot_rebuild.yml@@ -11,6 +11,7 @@ jobs:if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'microsoft/playwright'permissions:contents: write+ pull-requests: writesteps:- uses: actions/checkout@v6with:@@ -35,41 +36,16 @@ jobs:git add .git commit -m "chore: update generated files after dependency update"git push origin HEAD:${{ github.head_ref }}+ # Pushing with GITHUB_TOKEN does not retrigger workflow runs, see:+ # https://docs.github.com/en/actions/concepts/security/github_token#when-github_token-triggers-workflow-runs+ # Close and reopen the PR to fire a pull_request reopened event, which+ # retriggers infra.yml on the new commit.+ gh pr close ${{ github.event.pull_request.number }}+ # Remove labels after closing to avoid triggering bots that may rerun CI.+ gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels -X DELETE+ gh pr reopen ${{ github.event.pull_request.number }}elseecho "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"+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}