Skip to content

Add demo seed data and API fallback for portfolio mode #14

Add demo seed data and API fallback for portfolio mode

Add demo seed data and API fallback for portfolio mode #14

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
backend:
name: Backend Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -v
frontend:
name: Frontend Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: web/package.json
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npx oxlint . && npx eslint . --cache
- name: Type check
run: npm run type-check
- name: Build
run: npm run build
- name: Test
run: npx vitest run