[Flue] Add review validation step to suppress false-positive findings #73
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: Flue CI | |
| on: | |
| pull_request: | |
| branches: | |
| - production | |
| paths: | |
| - ".flue/**" | |
| - ".github/workflows/flue-ci.yml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-build: | |
| name: Pre Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 | |
| with: | |
| version: 11 | |
| - name: Set up node | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: 24.x | |
| cache: pnpm | |
| cache-dependency-path: .flue/pnpm-lock.yaml | |
| - name: Install node_modules | |
| run: pnpm install --frozen-lockfile | |
| working-directory: .flue | |
| - name: Typecheck | |
| run: pnpm run typecheck | |
| working-directory: .flue | |
| - name: Test | |
| run: pnpm run test | |
| working-directory: .flue | |
| build: | |
| name: Build | |
| needs: pre-build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 | |
| with: | |
| version: 11 | |
| - name: Set up node | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: 24.x | |
| cache: pnpm | |
| cache-dependency-path: .flue/pnpm-lock.yaml | |
| - name: Install node_modules | |
| run: pnpm install --frozen-lockfile | |
| working-directory: .flue | |
| - name: Build | |
| run: pnpm run build | |
| working-directory: .flue | |
| post-build: | |
| name: Post Build | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: No post-build checks yet | |
| run: echo "No post-build checks for flue yet." | |
| evals: | |
| name: Agent Evals | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 | |
| with: | |
| version: 11 | |
| - name: Set up node | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: 24.x | |
| cache: pnpm | |
| cache-dependency-path: .flue/pnpm-lock.yaml | |
| - name: Install node_modules | |
| run: pnpm install --frozen-lockfile | |
| working-directory: .flue | |
| - name: Run evals | |
| run: pnpm run flue:evals | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| DOCS_FLUE_INTERNAL_TOKEN: ${{ secrets.DOCS_FLUE_INTERNAL_TOKEN }} | |
| DOCS_FLUE_AI_GATEWAY_ID: ${{ secrets.DOCS_FLUE_AI_GATEWAY_ID }} | |
| EVALS_CMD: evals:json | |
| - name: Upload eval results | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| if: always() | |
| with: | |
| name: vitest-evals-results | |
| path: .flue/vitest-results.json | |
| retention-days: 30 | |
| if-no-files-found: ignore |