Skip to content

style: improve contrast of unselected cards and fix progress ring vis… #631

style: improve contrast of unselected cards and fix progress ring vis…

style: improve contrast of unselected cards and fix progress ring vis… #631

Workflow file for this run

name: Comprehensive CI Pipeline
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
backend:
name: Backend Build & Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:7
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- name: Install dependencies
working-directory: ./backend
run: npm ci
- name: Build
working-directory: ./backend
run: npm run build
- name: Prisma Generate & Migrate
working-directory: ./backend
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test_db
run: |
npx prisma generate
npx prisma migrate deploy || true
- name: Test Migration Rollbacks
working-directory: ./backend
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test_db
run: npm run test:migrations
- name: Run tests
working-directory: ./backend
env:
NODE_ENV: test
DATABASE_URL: postgresql://test:test@localhost:5432/test_db
REDIS_URL: redis://localhost:6379
JWT_SECRET: test-jwt-secret
GITHUB_CLIENT_ID: test-github-client-id
GITHUB_CLIENT_SECRET: test-github-client-secret
GITHUB_REDIRECT_URI: http://localhost:8080/api/v1/oauth/github/callback
FRONTEND_URL: http://localhost:3000
run: npm run test:coverage || true
frontend:
name: Frontend Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Build
working-directory: ./frontend
run: npm run build
contracts:
name: Contracts Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
- name: Rustfmt Check
working-directory: ./contracts
run: cargo fmt --check
- name: Clippy Check
working-directory: ./contracts
run: cargo clippy
- name: Build
working-directory: ./contracts
run: cargo build