Skip to content

Commit f4f2e1e

Browse files
committed
setup base CI for style checks
1 parent c1a1f77 commit f4f2e1e

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Deploy Marketplace
2+
3+
on: push
4+
5+
jobs:
6+
backend-check:
7+
name: Backend Checks
8+
runs-on: ubuntu-latest
9+
container:
10+
image: ghcr.io/astral-sh/uv:latest-python3.11-bookworm
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install dependencies
14+
run: |-
15+
cd backend
16+
uv sync --frozen
17+
- name: Run ruff check
18+
run: |-
19+
cd backend
20+
uv run ruff check .
21+
- name: Run ruff format
22+
run: |-
23+
cd backend
24+
uv run ruff format .
25+
26+
frontend-check:
27+
name: Frontend Checks
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v4
33+
with:
34+
version: 8
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 24
39+
cache: "pnpm"
40+
- name: Install dependencies
41+
run: |-
42+
cd frontend
43+
pnpm install --frozen-lockfile
44+
- name: Run ESLint
45+
run: |-
46+
cd frontend
47+
pnpm lint
48+
- name: Run type check
49+
run: |-
50+
cd frontend
51+
pnpm typecheck

0 commit comments

Comments
 (0)