Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 74 additions & 4 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

defaults:
run:
working-directory: contracts # 👈 all cargo commands run in contracts/
working-directory: contracts # 👈 all cargo commands run in contracts/

jobs:
format:
Expand Down Expand Up @@ -94,4 +94,74 @@ jobs:
${{ runner.os }}-cargo-build-
${{ runner.os }}-cargo-
- name: Build all crates
run: cargo build --all --verbose
run: cargo build --all --verbose

# ─────────────────────────────────────────────
# BACKEND — NestJS
# ─────────────────────────────────────────────
backend:
name: Backend (NestJS)
runs-on: ubuntu-latest

defaults:
run:
working-directory: backend

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
run: npm ci

- name: Lint
run: npm run lint

- name: Build (TypeScript check)
run: npm run build

- name: Unit tests
run: npm run test -- --passWithNoTests

# ─────────────────────────────────────────────
# FRONTEND — Next.js
# ─────────────────────────────────────────────
frontend:
name: Frontend (Next.js)
runs-on: ubuntu-latest

defaults:
run:
working-directory: frontend

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
run: npm ci

- name: Lint
run: npm run lint

- name: Build
run: npm run build
env:
NEXT_PUBLIC_API_URL: http://localhost:3001

- name: Unit tests
run: npm run test -- --passWithNoTests
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

Loading
Loading