32 lines
502 B
YAML
32 lines
502 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint (svelte-check)
|
|
run: npm run check
|
|
|
|
- name: Unit tests
|
|
run: npx vitest run --project server
|
|
|
|
- name: Build
|
|
run: npm run build
|