Skip to content

Commit

Permalink
πŸ’š Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
wei committed Dec 12, 2024
1 parent 43e0719 commit dd6a5aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: End-to-End Tests

on:
workflow_dispatch:
pull_request_target:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
Expand All @@ -18,7 +21,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -40,15 +43,15 @@ 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'

- name: E2E Test
run: yarn test:e2e
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This comment has been minimized.

Copy link
@wei

wei Dec 12, 2024

Author Owner

@KemingHe p.s. I verified secrets.GITHUB_TOKEN works fine for e2e in GitHub Actions.

PROJECT_URL: http://127.0.0.1:3000

- name: Upload Playwright artifacts on failure
Expand Down

0 comments on commit dd6a5aa

Please sign in to comment.