Skip to content

Add comprehensive test suite (369 tests) and CI pipeline #1

Add comprehensive test suite (369 tests) and CI pipeline

Add comprehensive test suite (369 tests) and CI pipeline #1

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
jobs:
backend:
name: Backend Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: backend
- name: Run tests
run: cargo test --lib --tests
frontend:
name: Frontend Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npx vitest run