docs: prefer UploadedAsset.ref for model inputs (RUN-418 shipped backend-side) #11
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: build · typecheck · test · lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.10 | |
| - name: Install | |
| run: bun install --frozen-lockfile | |
| - name: Build | |
| run: bun run build | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Test | |
| run: bun run test | |
| - name: Lint | |
| run: bun run lint | |
| # Warning ratchet: biome warnings (mostly the studio components' | |
| # downgraded a11y/hooks rules) must not grow past the checked-in | |
| # budget. Lower the budget as warnings get fixed; raising it is a | |
| # conscious review decision. | |
| - name: Lint warning ratchet | |
| run: | | |
| BUDGET=45 | |
| count=$(bunx biome check . 2>&1 | grep -oE 'Found [0-9]+ warnings' | grep -oE '[0-9]+' | head -1 || true) | |
| count=${count:-0} | |
| echo "biome warnings: $count (budget: $BUDGET)" | |
| if [ "$count" -gt "$BUDGET" ]; then | |
| echo "::error::Warning count $count exceeds the budget of $BUDGET — fix the new warnings or consciously raise the budget in ci.yml." | |
| exit 1 | |
| fi | |
| # The live e2e proof (examples/e2e-proof) needs RUNFLOW_API_KEY and | |
| # spends real credits, so it stays a local/manual gate — see | |
| # `bun run proof`. |