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
34 changes: 23 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,49 +54,61 @@ jobs:

build-api:
runs-on: self-hosted
if : github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
needs:
- lint-api
steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '24'
node-version: '23'
cache: 'pnpm'
cache-dependency-path: ./backend/pnpm-lock.yaml

- name: Install dependencies
working-directory: ./backend
run: |
npm ci
run: pnpm install --frozen-lockfile

- name: Build
- name: Build
working-directory: ./backend
run: npm run build-test
run: pnpm run build-test

build-front:
runs-on: self-hosted
if : github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
needs:
- lint-front
steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '24'
node-version: '23'
cache: 'pnpm'
cache-dependency-path: ./frontend/pnpm-lock.yaml

- name: Install dependencies
working-directory: ./frontend
run: |
npm ci
run: pnpm install --frozen-lockfile

- name: Build
working-directory: ./frontend
run: npm run build
run: pnpm run build

deploy-api:
runs-on: self-hosted
Expand Down
6 changes: 4 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ WORKDIR /app
# Install system dependencies (including PostgreSQL client)
RUN apt-get update && apt-get install -y postgresql-client && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN corepack enable

# Copy package files and install dependencies
COPY package.json package-lock.json ./
RUN npm install -g npm@latest && npm install
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile

# Copy the rest of the application files
COPY . .
Expand Down
1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "backend",
"version": "1.0.0",
"main": "index.js",
"packageManager": "pnpm@11.0.0",
"scripts": {
"dev": "nodemon --watch src --ext ts --exec ts-node ./server.ts",
"migrate": "npx drizzle-kit generate && npx drizzle-kit migrate",
Expand Down
Loading
Loading