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
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: CI

on:
pull_request:
paths:
- 'listener/src/migrations/**'
- 'listener/src/database/**'
- 'listener/src/scripts/**'
- 'listener/package.json'
push:
branches:
- main
Expand All @@ -21,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 20
cache: "npm"
cache-dependency-path: dashboard/package-lock.json
- name: Install dependencies
Expand Down Expand Up @@ -54,7 +49,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 20
cache: "npm"
cache-dependency-path: listener/package-lock.json
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/preview-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v4

- name: Delete Cloudflare Pages deployment
if: github.event.pull_request.head.repo.full_name == github.repository
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
cache-dependency-path: dashboard/package-lock.json

Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,20 @@ jobs:
cd listener
npm ci
npm run build
- name: Start listener (background)
run: |
cd listener
nohup npm run start >/tmp/listener.log 2>&1 &
echo $! >/tmp/listener.pid
- run: |
cd dashboard
npm ci
npm run build
- run: |
bash scripts/health-check.sh http://localhost:3000/health
bash scripts/health-check.sh
- name: Stop listener
if: always()
run: |
if [ -f /tmp/listener.pid ]; then
kill "$(cat /tmp/listener.pid)" || true
fi
Loading