Skip to content

run e2e tests on every PR #118

run e2e tests on every PR

run e2e tests on every PR #118

Workflow file for this run

---
name: "Run Tests"
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
unit-tests:
name: "Run Tests"
runs-on: "depot-ubuntu-24.04-small"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v4"
with:
node-version: 22
cache-dependency-path: "yarn.lock"
cache: "yarn"
- uses: "bahmutov/npm-install@v1"
- name: "Run tests"
run: "yarn test"
e2e-tests:
name: "Run E2E Tests"
runs-on: "depot-ubuntu-24.04-4" # Use a larger instance for E2E tests
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v4"
with:
node-version: 22
cache-dependency-path: "yarn.lock"
cache: "yarn"
- uses: "bahmutov/npm-install@v1"
- name: "Cypress run"
uses: "cypress-io/github-action@v6"
with:
browser: chrome
start: HTTPS=true vite preview -l info --strictPort --port 5173
wait-on: "http://localhost:5173"
wait-on-timeout: 120
- uses: "actions/upload-artifact@v4"
if: always()
with:
name: "cypress-artifacts" # see in "summary" tab of the workflow run
path: |
cypress/screenshots/
cypress/videos/
cypress/logs/