cypress.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: End-to-end tests
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. cypress-run:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Setup Node
  12. uses: actions/setup-node@v3
  13. with:
  14. node-version: 16
  15. - name: Checkout
  16. uses: actions/checkout@v3
  17. - name: Cypress run
  18. uses: cypress-io/github-action@v2
  19. with:
  20. build: npm run build
  21. start: npm run serve
  22. wait-on: http://localhost:5000
  23. config: baseUrl=http://localhost:5000
  24. browser: chrome
  25. env:
  26. VITE_NO_WELCOME: 1
  27. VITE_CI: 1
  28. VITE_SOCKET_URL: https://public.jeremiez.net/
  29. VITE_SOCKET_PATH: /wamp/socket.io
  30. VITE_API_ENDPOINT: https://ricochetjs-deploy-production.up.railway.app/
  31. VITE_RICOCHET_SITEID: airboardgame
  32. ACTIONS_ALLOW_UNSECURE_COMMANDS: true
  33. - uses: actions/upload-artifact@v1
  34. if: failure()
  35. with:
  36. name: cypress-screenshots
  37. path: cypress/screenshots
  38. # Test run video was always captured, so this action uses "always()" condition
  39. - uses: actions/upload-artifact@v1
  40. if: always()
  41. with:
  42. name: cypress-videos
  43. path: cypress/videos