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
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
GITHUB_TOKEN=test
# GitHub token used to fetch repository stats for our sponsor page
GH_TOKEN=test
# TODO explain why this is needed
AUTH_SECRET=test
11 changes: 6 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Playwright Tests

on:
deployment_status:
pull_request:

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
test:
name: Playwright end-to-end tests
if: github.ref != 'refs/heads/main' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
Expand All @@ -27,9 +31,6 @@ jobs:

- name: Run Playwright tests
run: npx playwright test --forbid-only
env:
# This might depend on your test-runner/language binding
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}

- name: Store Playwright test results
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
command = "npm run build"
publish = "build"
Loading
Loading