Skip to content

Commit 60aa5f1

Browse files
committed
add build and startup smoke checks
1 parent 729d7ec commit 60aa5f1

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
verify:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v5
18+
with:
19+
node-version: 22
20+
cache: npm
21+
22+
- name: Install Dependencies
23+
run: npm ci
24+
25+
- name: Prepare Development Env
26+
run: cp .env.development.example .env.development
27+
28+
- name: Build CSS
29+
run: npm run build:css
30+
31+
- name: Build Docs
32+
run: npm run build:docs
33+
34+
- name: Smoke Start Server
35+
shell: bash
36+
run: |
37+
set -euo pipefail
38+
39+
status=0
40+
timeout 20s npm start > server.log 2>&1 || status=$?
41+
cat server.log
42+
43+
if [ "$status" -ne 0 ] && [ "$status" -ne 124 ]; then
44+
exit "$status"
45+
fi
46+
47+
grep -q "Webhook proxy server running on port" server.log

0 commit comments

Comments
 (0)