Skip to content

Commit a15bf22

Browse files
committed
ci: add backend workflow for lint, tests, and audit checks
1 parent 45c600e commit a15bf22

4 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/backend.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 dependencies
22+
run: npm install
23+
24+
- name: Start backend briefly
25+
run: |
26+
node backend/server.js &
27+
sleep 5
28+
kill $! || true
29+
30+
- name: Run security audit
31+
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)