feat: auto-bootstrap missing DMR and MLX host components on harbor up #35
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.github/workflows/lint.yml' | |
| - 'harbor.sh' | |
| - 'install.sh' | |
| - 'requirements.sh' | |
| - 'services/**/*.sh' | |
| - 'services/**/compose.*.yml' | |
| - 'shared/**/*.sh' | |
| - 'tests/**/*.sh' | |
| - '.scripts/**/*.sh' | |
| - '.scripts/lint.ts' | |
| - '.scripts/lint-self-test.ts' | |
| - '.scripts/lint/**' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - '.github/workflows/lint.yml' | |
| - 'harbor.sh' | |
| - 'install.sh' | |
| - 'requirements.sh' | |
| - 'services/**/*.sh' | |
| - 'services/**/compose.*.yml' | |
| - 'shared/**/*.sh' | |
| - 'tests/**/*.sh' | |
| - '.scripts/**/*.sh' | |
| - '.scripts/lint.ts' | |
| - '.scripts/lint-self-test.ts' | |
| - '.scripts/lint/**' | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| name: harbor dev lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2.0.4 | |
| with: | |
| deno-version: lts | |
| cache: true | |
| - name: Install shellcheck | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck | |
| shellcheck --version | |
| - name: Run lint self-test (regex-vs-fixture regressions) | |
| run: bash harbor.sh dev lint-self-test | |
| - name: Run lint (human output for logs) | |
| run: bash harbor.sh dev lint | |
| - name: Assert rules pass is clean (no warnings or errors) | |
| # Phase 6 baseline: services/** and shared/** are clean of HARBORxxx | |
| # findings. Any new warning is a regression we want to block at PR | |
| # time. Shellcheck severity is intentionally not gated here — there | |
| # are pre-existing SC errors tracked separately. | |
| run: | | |
| bash harbor.sh dev lint --rules --json > rules.json | |
| count=$(jq '.findings | length' rules.json) | |
| if [ "$count" -ne 0 ]; then | |
| echo "::error::harbor dev lint --rules reported $count finding(s); baseline is 0." | |
| jq -r '.findings[] | " \(.file):\(.line) \(.severity) \(.rule) \(.message)"' rules.json | |
| exit 1 | |
| fi | |
| echo "rules pass clean: 0 findings." | |
| - name: Run lint (JSON for annotations) | |
| if: always() | |
| run: bash harbor.sh dev lint --json > lint.json || true | |
| - name: Upload JSON findings | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lint-findings-${{ github.run_id }} | |
| path: lint.json | |
| retention-days: 14 |