Skip to content

Add cypress and test login and recently played games #17

Add cypress and test login and recently played games

Add cypress and test login and recently played games #17

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
cypress_run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev --host
wait-on: 'http://localhost:5173/retroleaderboards'
env:
VITE_ENCRYPTION_KEY: 1234567890_KEY

Check failure on line 22 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 22, Col: 13): A mapping was not expected
# - name: Install dependencies
# run: npm install
# - name: Start Vite server
# run: npm run dev &
# env:
# VITE_ENCRYPTION_KEY: 1234567890_KEY
# - name: Wait for Vite server
# run: |
# for i in {1..10}; do
# if curl -s http://localhost:5173/retroleaderboards/; then
# echo "Vite server is up!"
# break
# fi
# echo "Waiting for Vite server..."
# sleep 2
# done
# - name: Run Cypress tests
# run: npm run cy:run