Harden GitHub sync dispatch errors #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |