Skip to content

Merge pull request #688 from laurynas-biveinis/c++20-requires #8

Merge pull request #688 from laurynas-biveinis/c++20-requires

Merge pull request #688 from laurynas-biveinis/c++20-requires #8

Workflow file for this run

---
name: sonarcloud
on:
push:
branches:
- master
pull_request:
permissions: {}
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Setup dependencies
run: |
sudo apt-get install -y libboost-dev
- name: Produce Compilation Database
run: |
cmake . -DCMAKE_BUILD_TYPE=Release -DSTANDALONE=ON
- name: SonarCloud Scan
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
--define sonar.cfamily.compile-commands=compile_commands.json