Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI

on:
push:
pull_request:

jobs:
checks:
name: checks
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: |
package-lock.json
web/package-lock.json

- name: Install root dependencies
run: npm ci

- name: Install frontend dependencies
run: npm ci
working-directory: web

- name: Run backend tests
run: npm run test:backend

- name: Run frontend tests
run: npm --prefix web test

- name: Build frontend
run: npm --prefix web run build

e2e:
name: e2e
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: |
package-lock.json
web/package-lock.json

- name: Install root dependencies
run: npm ci

- name: Install frontend dependencies
run: npm ci
working-directory: web

- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium

- name: Run end-to-end tests
run: npm run test:e2e

- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
if-no-files-found: ignore

- name: Upload Playwright test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/
if-no-files-found: ignore
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules/
/dist/
data/*.db
data/*.db-shm
data/*.db-wal
/playwright-report/
/test-results/
Loading
Loading