-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (33 loc) · 892 Bytes
/
Copy pathci.yml
File metadata and controls
41 lines (33 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci --omit=dev
- name: Syntax check
run: |
node --check server.js
for f in src/*.js src/routes/*.js public/app.js scripts/smoke.js; do node --check "$f"; done
- name: Start panel
run: |
node server.js > server.log 2>&1 &
for i in $(seq 1 30); do
curl -fsS http://localhost:3000/api/health && break
sleep 1
done
- name: Run smoke tests
run: node scripts/smoke.js
- name: Show server log on failure
if: failure()
run: cat server.log