Skip to content

Commit 63e0b98

Browse files
committed
ci: fix backend (include dev deps for ruff) + frontend (pnpm not npm)
1 parent 7b4217c commit 63e0b98

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ jobs:
1818
python-version: '3.12'
1919
- name: Install uv
2020
uses: astral-sh/setup-uv@v3
21-
- name: Install dependencies
22-
run: uv sync --frozen --no-dev
21+
- name: Install dependencies (incl. dev for ruff)
22+
run: uv sync --frozen
2323
- name: Ruff lint
2424
run: uv run --no-sync ruff check app/ tests/ scripts/
2525
- name: Docker build smoke
2626
run: |
2727
docker compose --env-file .env.example config -q || true
2828
docker build -t openstudy:ci-smoke .
29+
2930
frontend:
3031
name: Frontend (tsc)
3132
runs-on: ubuntu-latest
@@ -34,10 +35,17 @@ jobs:
3435
working-directory: web
3536
steps:
3637
- uses: actions/checkout@v4
37-
- uses: actions/setup-node@v4
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 9
42+
- name: Set up Node
43+
uses: actions/setup-node@v4
3844
with:
3945
node-version: '20'
40-
cache: 'npm'
41-
cache-dependency-path: 'web/package-lock.json'
42-
- run: npm ci
43-
- run: npx tsc -b
46+
cache: 'pnpm'
47+
cache-dependency-path: 'web/pnpm-lock.yaml'
48+
- name: Install dependencies
49+
run: pnpm install --frozen-lockfile
50+
- name: Type-check
51+
run: pnpm exec tsc -b

0 commit comments

Comments
 (0)