Skip to content

Grant-readiness P0s: LICENSE, SECURITY.md, Dockerfile, tool status sy… #79

Grant-readiness P0s: LICENSE, SECURITY.md, Dockerfile, tool status sy…

Grant-readiness P0s: LICENSE, SECURITY.md, Dockerfile, tool status sy… #79

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npx turbo lint
- run: npx tsc --noEmit --project apps/api/tsconfig.json
- run: npx tsc --noEmit --project apps/web/tsconfig.json
build:
name: Build
runs-on: ubuntu-latest
needs: [lint-typecheck]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npx turbo build
test:
name: Test
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npx turbo test
docker-build:
name: Docker Build (API)
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t savitools-api:latest -f apps/api/Dockerfile .