Skip to content

README.md: specify language for AL2023 code block #1357

README.md: specify language for AL2023 code block

README.md: specify language for AL2023 code block #1357

Workflow file for this run

---
name: sonarcloud
on: [push]
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 add-apt-repository -y 'ppa:mhier/libboost-latest'
sudo apt-get install -y boost1.74
- name: Setup sonar-scanner
uses: sonarsource/sonarcloud-github-c-cpp@v2
- name: Produce Compilation Database
shell: bash
run: |
cmake . -DCMAKE_BUILD_TYPE=Debug
- name: SonarCloud Scan
env:
# Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner --define \
sonar.cfamily.compile-commands=compile_commands.json