Skip to content

docs: add MVP readiness report and grant application #155

docs: add MVP readiness report and grant application

docs: add MVP readiness report and grant application #155

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
backend:
name: Backend CI
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: web3-student-lab-test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: backend/package-lock.json
- run: npm install
- name: Setup test database
run: |
npx prisma migrate deploy
- run: npm run build
- run: npm test
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/web3-student-lab-test?schema=public
JWT_SECRET: test-secret-key-that-is-long-enough-for-testing-123456789
frontend:
name: Frontend CI
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- run: npm install
- run: npm run build
- run: npm run lint