Render options correctly #19
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
push: | |
branches: [ '**' ] # Run on all branches | |
pull_request: | |
branches: [ main, master ] | |
env: | |
VITE_PUBLIC_GRAPH_URL: ${{ secrets.VITE_PUBLIC_GRAPH_URL }} | |
VITE_PUBLIC_RPC_URL: ${{ secrets.VITE_PUBLIC_RPC_URL }} | |
VITE_PUBLIC_PONDER_URL: ${{ secrets.VITE_PUBLIC_PONDER_URL }} | |
SECRET_WORDS: ${{ secrets.SECRET_WORDS }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright Browsers | |
run: cd apps/web && pnpm exec playwright install --with-deps | |
- name: Install wait-on | |
run: npm install -g wait-on | |
- name: Start web application and wait | |
run: | | |
cd apps/web | |
pnpm dev & # Start the dev server in background | |
wait-on -t 60000 http://localhost:5173 # Wait for up to 60 seconds for the server to respond | |
- name: Run Playwright tests | |
run: cd apps/web && pnpm exec playwright test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |