Skip to content

fix a few sonarcloud issues #79

fix a few sonarcloud issues

fix a few sonarcloud issues #79

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
env:
BUILD_WRAPPER_OUT_DIR: bw-output
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Install dependencies
run: |
pip install -U nunavut
sudo apt install -y gcc-arm-none-eabi
- name: Run build-wrapper
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make cyphal
- name: Run sonar-scanner
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner