42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:22-bookworm
|
|
steps:
|
|
- name: Check out repository
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Python and native build tools
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends python3 make g++
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
# Generates the SvelteKit config required by tests in a fresh checkout.
|
|
- name: Check styles and types
|
|
run: npm run check
|
|
|
|
- name: Check formatting and lint
|
|
run: npm run lint
|
|
|
|
- name: Run application tests
|
|
# Bound resource use for database-heavy fixtures on shared runners.
|
|
env:
|
|
VITEST_MAX_WORKERS: '2'
|
|
run: npm test
|
|
|
|
- name: Run agent tests
|
|
run: npm run test:agent
|
|
|
|
- name: Build production bundles
|
|
run: npm run build
|