Merge pull request #173 from sjinks/renovate/peter-evans-create-pull-… #446
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: | |
| - master | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build and analyze | |
| runs-on: ubuntu-24.04 | |
| env: | |
| BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Generate compilation database | |
| run: cmake -B build | |
| - name: Run sonar-scanner | |
| uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 | |
| with: | |
| args: --define sonar.cfamily.compile-commands=build/compile_commands.json | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |