Skip to content

chore(deps): update github/codeql-action action to v3.29.4 (#227) #612

chore(deps): update github/codeql-action action to v3.29.4 (#227)

chore(deps): update github/codeql-action action to v3.29.4 (#227) #612

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
CC: clang-18
CXX: clang++-18
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Generate compilation database
run: |
cmake -B build -DCMAKE_CXX_COMPILER=clang++
cmake --build build -j $(nproc)
- name: Run sonar-scanner
uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf # v5.2.0
with:
args: >
--define sonar.cfamily.compile-commands=build/compile_commands.json
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}