Skip to content

Implement feature X to enhance user experience and fix bug Y in module Z #17

Implement feature X to enhance user experience and fix bug Y in module Z

Implement feature X to enhance user experience and fix bug Y in module Z #17

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test-api:
name: API tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
working-directory: .
- run: npm test
test-client:
name: Client tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
working-directory: .
- run: npm test
build-client:
name: Client build
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
env:
VITE_API_KEY: ci-placeholder
VITE_API_DOMAIN: localhost:8787
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
working-directory: .
- run: npm run build
typecheck-api:
name: API typecheck
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
working-directory: .
- run: npx tsc --noEmit