Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

fix: add missing HTTP method to CORS config #21

fix: add missing HTTP method to CORS config

fix: add missing HTTP method to CORS config #21

Workflow file for this run

name: Server and E2E tests
on:
pull_request:
branches: [main]
jobs:
test:
defaults:
run:
shell: bash # Required for Bash jobs
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "^22"
cache: "npm"
- name: Install dependencies
run: npm run install:all
- name: Install Playwright Browsers
run: npx --prefix=client playwright install --with-deps
- name: Build server
run: npm --prefix=server run build
- name: Start Docker services
run: docker compose up --detach
- name: Start servers
run: |
npm --prefix=client run start &
npm --prefix=server run start &
- name: Run server tests
run: npm --prefix=server run test
- name: Run Playwright tests
run: npm --prefix=client run pw
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: client/playwright-report
retention-days: 30