Update dependency @biomejs/biome to v2.4.10 (#247) #660
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: Node.js CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request_target: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node-version: [20.x, 22.x, 24.x] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: yarn install | |
| - run: yarn check | |
| - run: yarn format | |
| - run: yarn test:ci | |
| - uses: actions/upload-artifact@v7 | |
| if: matrix.node-version == '24.x' | |
| with: | |
| name: reports-${{ matrix.os }}-${{ matrix.node-version }} | |
| retention-days: 1 | |
| path: | | |
| **/coverage/lcov.info | |
| **/coverage/sonar-report.xml | |
| !node_modules/** | |
| # ─── Job 2: uploads coverage using secrets, does NOT run PR code ───────── | |
| static_analysis: | |
| name: "🔬 Static Analysis" | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: success() | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| # Commit is needed to check coverage files against content | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | |
| # Disabling shallow clone is needed by SonarQube | |
| fetch-depth: 0 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| pattern: reports-* | |
| path: __reports | |
| - run: find __reports -type f | |
| - name: Collect Sonar report paths | |
| id: sonar_reports | |
| run: | | |
| echo "test_reports=$(find __reports -name "sonar-report.xml" | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_OUTPUT | |
| echo "project_version=$(git tag -l --sort=-creatordate --format='%(refname:short)' | head -n1)" >> $GITHUB_OUTPUT | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarqube-scan-action@v7 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| args: > | |
| -Dsonar.testExecutionReportPaths=${{ steps.sonar_reports.outputs.test_reports }} | |
| -Dsonar.projectVersion=`${{ steps.sonar_reports.outputs.project_version }}` |