progress-monitor #40
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: progress-monitor | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "30 3 * * *" | |
| jobs: | |
| snapshot: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: | | |
| services/api/package-lock.json | |
| services/frontend/package-lock.json | |
| - name: Install api dependencies | |
| working-directory: services/api | |
| run: npm ci | |
| - name: Install frontend dependencies | |
| working-directory: services/frontend | |
| run: npm ci | |
| - name: Generate progress snapshot | |
| env: | |
| RUN_SMOKE: "0" | |
| SMOKE_SKIP_BUILD: "1" | |
| STRICT_MODE: "1" | |
| SAVE_HISTORY: "1" | |
| HISTORY_RETENTION_DAYS: "14" | |
| HISTORY_RETENTION_COUNT: "200" | |
| METRICS_OUTPUT_FILE: "docs/PROGRESS_METRICS.prom" | |
| run: scripts/progress-monitor.sh | |
| - name: Upload progress snapshot artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: progress-snapshot | |
| path: | | |
| docs/PROGRESS_STATUS.md | |
| docs/PROGRESS_STATUS.json | |
| docs/PROGRESS_TREND.md | |
| docs/PROGRESS_METRICS.prom | |
| docs/PROGRESS_METRICS.json | |
| docs/progress_history | |
| retention-days: 14 | |
| - name: Publish summary | |
| run: | | |
| cat docs/PROGRESS_STATUS.md >> "$GITHUB_STEP_SUMMARY" | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| cat docs/PROGRESS_TREND.md >> "$GITHUB_STEP_SUMMARY" |