Skip to content

Commit 7404966

Browse files
Merge pull request #521 from wumibals/main
fix: minor changes
2 parents 109e97b + 8329aa2 commit 7404966

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3739
-3726
lines changed

.github/workflows/CI.yaml

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
defaults:
1313
run:
14-
working-directory: contracts # 👈 all cargo commands run in contracts/
14+
working-directory: contracts # 👈 all cargo commands run in contracts/
1515

1616
jobs:
1717
format:
@@ -94,4 +94,74 @@ jobs:
9494
${{ runner.os }}-cargo-build-
9595
${{ runner.os }}-cargo-
9696
- name: Build all crates
97-
run: cargo build --all --verbose
97+
run: cargo build --all --verbose
98+
99+
# ─────────────────────────────────────────────
100+
# BACKEND — NestJS
101+
# ─────────────────────────────────────────────
102+
backend:
103+
name: Backend (NestJS)
104+
runs-on: ubuntu-latest
105+
106+
defaults:
107+
run:
108+
working-directory: backend
109+
110+
steps:
111+
- name: Checkout code
112+
uses: actions/checkout@v4
113+
114+
- name: Setup Node.js
115+
uses: actions/setup-node@v4
116+
with:
117+
node-version: "20"
118+
cache: "npm"
119+
cache-dependency-path: backend/package-lock.json
120+
121+
- name: Install dependencies
122+
run: npm ci
123+
124+
- name: Lint
125+
run: npm run lint
126+
127+
- name: Build (TypeScript check)
128+
run: npm run build
129+
130+
- name: Unit tests
131+
run: npm run test -- --passWithNoTests
132+
133+
# ─────────────────────────────────────────────
134+
# FRONTEND — Next.js
135+
# ─────────────────────────────────────────────
136+
frontend:
137+
name: Frontend (Next.js)
138+
runs-on: ubuntu-latest
139+
140+
defaults:
141+
run:
142+
working-directory: frontend
143+
144+
steps:
145+
- name: Checkout code
146+
uses: actions/checkout@v4
147+
148+
- name: Setup Node.js
149+
uses: actions/setup-node@v4
150+
with:
151+
node-version: "20"
152+
cache: "npm"
153+
cache-dependency-path: frontend/package-lock.json
154+
155+
- name: Install dependencies
156+
run: npm ci
157+
158+
- name: Lint
159+
run: npm run lint
160+
161+
- name: Build
162+
run: npm run build
163+
env:
164+
NEXT_PUBLIC_API_URL: http://localhost:3001
165+
166+
- name: Unit tests
167+
run: npm run test -- --passWithNoTests

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)