Skip to content

Commit 02043b6

Browse files
authored
Merge pull request #43 from srija-pixel/ci/backend-workflow
ci: add backend workflow for lint, tests, and audit checks
2 parents 741f0b9 + 000250f commit 02043b6

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/backend.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Backend CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'backend/**'
7+
8+
jobs:
9+
backend-check:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Install backend dependencies
22+
run: npm install
23+
working-directory: backend
24+
25+
- name: Start backend briefly
26+
run: |
27+
node backend/server.js &
28+
sleep 5
29+
kill $! || true
30+
31+
- name: Run security audit
32+
run: npm audit || true

backend/data/brocode.sqlite

4 KB
Binary file not shown.

backend/data/brocode.sqlite-shm

32 KB
Binary file not shown.

backend/data/brocode.sqlite-wal

161 KB
Binary file not shown.

0 commit comments

Comments
 (0)