feat: manage credential model availability #194
Workflow file for this run
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: Pull Request Checks | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| concurrency: | |
| group: ci-pr-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| BUN_CACHE_PATH: ~/.bun/install/cache | |
| BUN_VERSION: 1.3.14 | |
| CI: true | |
| NEXT_TELEMETRY_DISABLED: '1' | |
| jobs: | |
| verify: | |
| name: Bun / TypeScript / Coverage | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - name: Cache Bun package downloads | |
| uses: actions/cache@v6 | |
| with: | |
| path: ${{ env.BUN_CACHE_PATH }} | |
| key: ${{ runner.os }}-bun-${{ env.BUN_VERSION }}-${{ hashFiles('bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun-${{ env.BUN_VERSION }}- | |
| ${{ runner.os }}-bun- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run ESLint | |
| run: bun run lint | |
| - name: Check Prettier formatting | |
| run: bun run format:check | |
| - name: Run TypeScript type checks | |
| run: bun run typecheck | |
| - name: Run unit tests with coverage gate | |
| run: bun run test:ci | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@v1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: ./coverage/lcov.info | |
| flags: unittests | |
| name: codebuddy2api-pr | |
| disable_search: true | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| - name: Build Next.js app | |
| run: bun run build |