From dd6a5aa5147dd041d066f52c42eb26435bfc9743 Mon Sep 17 00:00:00 2001 From: Wei He Date: Thu, 12 Dec 2024 00:46:15 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20e2e=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/e2e.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 967aba62..3b84ac24 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -2,7 +2,10 @@ name: End-to-End Tests on: workflow_dispatch: - pull_request_target: + push: + branches: + - master + pull_request: types: - opened - synchronize @@ -18,7 +21,7 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v4 - + - name: Setup node uses: actions/setup-node@v4 with: @@ -40,7 +43,7 @@ jobs: path: | ${{ env.PLAYWRIGHT_BROWSERS_PATH }} key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} - + - name: Install Playwrigtht dependencies run: yarn playwright install --with-deps chromium if: steps.playwright-cache.outputs.cache-hit != 'true' @@ -48,7 +51,7 @@ jobs: - name: E2E Test run: yarn test:e2e env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PROJECT_URL: http://127.0.0.1:3000 - name: Upload Playwright artifacts on failure