Replace dependency @tsconfig/node20 with @tsconfig/node22 #1861
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: Sonarcloud | |
| on: | |
| push: | |
| branches: ["main", "*.x", "*-dev"] | |
| pull_request: | |
| branches: ["main", "*.x", "*-dev"] | |
| jobs: | |
| sonarqube: | |
| name: SonarQube | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js LTS | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 | |
| with: | |
| node-version: lts/* | |
| - name: "Run tests with coverage" | |
| run: | | |
| npm ci | |
| npm test -- --coverage | |
| - name: SonarQubeScan Scan | |
| uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| args: > | |
| -Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} | |
| -Dsonar.pullrequest.key=${{ github.event.workflow_run.pull_requests[0].number }} | |
| -Dsonar.pullrequest.branch=${{ github.event.workflow_run.pull_requests[0].head.ref }} | |
| -Dsonar.pullrequest.base=${{ github.event.workflow_run.pull_requests[0].base.ref }} |