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
48 changes: 26 additions & 22 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,30 +197,34 @@ jobs:
# fi

# ---------------- BACKEND TEST ----------------
# backend-check:
# name: Test Backend
# runs-on: ubuntu-latest
# needs: [detect-changes, lint-backend]
# if: needs.detect-changes.outputs.backend == 'true'
backend-check:
name: Test Backend
runs-on: ubuntu-latest
needs: [detect-changes, lint-backend]
if: needs.detect-changes.outputs.backend == 'true'

# steps:
# - name: Checkout code
# uses: actions/checkout@v4
steps:
- name: Checkout code
uses: actions/checkout@v4

# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

# - name: setup pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

# - name: Install dependencies
# run: pnpm install
# working-directory: ./backend
- name: Install dependencies
run: pnpm install
working-directory: ./backend

- name: Copy environment variables
run: cp .env.example .env
working-directory: ./backend

# - name: Run Tests
# run: pnpm test
# working-directory: ./backend
- name: Run Tests
run: pnpm test
working-directory: ./backend
1 change: 0 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,5 @@ if (process.env.NODE_ENV !== 'test') {
startServer();
}

// Export for testing (app for Supertest, startServer if you want to start/stop manually in tests)
export default app;
export { startServer };