Files
appointment-booking-software/.github/workflows/main-deploy.yml
T
Hendrik Belitz 49a243fb4c Upload images to docker hub.
Fixed e2e tests in main-deploy
2025-07-08 09:25:00 +02:00

45 lines
932 B
YAML

name: Main Branch Deploy
on:
push:
branches: [main]
jobs:
test-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run type checking
run: npm run check
- name: Run linting
run: npm run lint
- name: Run unit tests
run: npm run test:unit -- --run
- name: Build application
run: npm run build
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run E2E tests
run: npm run test:e2e
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"