fix(retrieval): honor zero-valued config #237
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: SonarCloud | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| sonarcloud: | |
| runs-on: ubuntu-latest | |
| # Skip on Dependabot PRs — SONAR_TOKEN isn't available to fork PRs, | |
| # causing "Not authorized" failures. Dependabot branches are forks. | |
| if: github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Build | |
| run: bun run build | |
| - name: Run tests with coverage | |
| run: bun run test:coverage | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |