Skip to content

ci: build next

ci: build next #1

name: Build, Test, and Lint
on:
pull_request:
branches:
- dev
push:
branches:
- dev
- main
workflow_call:
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Start server
run: npm start &
- name: Wait for server to start
run: sleep 10s
- name: Lint
run: npm run lint
- name: Run Jest tests
run: npm run test
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
playwright-report/
coverage/
lint-results/
retention-days: 30