Skip to content

Harden GitHub sync dispatch errors #44

Harden GitHub sync dispatch errors

Harden GitHub sync dispatch errors #44

Workflow file for this run

name: Quality Gate
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions:
contents: read
jobs:
quality-gate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check (non-blocking, legacy debt)
continue-on-error: true
run: npm run type-check
- name: Lint (non-blocking, legacy debt)
continue-on-error: true
run: npm run lint
- name: Build
run: npm run build
- name: API smoke test
run: |
npm run start -- --port 4010 > /tmp/running2-start.log 2>&1 &
APP_PID=$!
trap 'kill $APP_PID' EXIT
for i in $(seq 1 60); do
if curl -fsS http://127.0.0.1:4010/api/debug >/dev/null; then
break
fi
sleep 1
done
curl -fsS http://127.0.0.1:4010/api/debug >/dev/null
curl -fsS http://127.0.0.1:4010/api/stats >/dev/null
curl -fsS http://127.0.0.1:4010/api/sync/history >/dev/null
curl -fsS http://127.0.0.1:4010/api/data-sources >/dev/null