Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4eabf55

Browse files
committed
Fix sonarqube scan
1 parent26c6d2e commit4eabf55

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
build:
1111
runs-on:ubuntu-latest
12+
env:
13+
BUILD_WRAPPER_OUT_DIR:build_wrapper_output_directory
1214
steps:
1315
-uses:actions/checkout@v4
1416
# - name: Install dependencies
@@ -19,9 +21,15 @@ jobs:
1921
run:cmake --build build
2022
-name:Run tests
2123
run:ctest --test-dir build || true
24+
-name:Install Build Wrapper
25+
uses:SonarSource/sonarqube-scan-action/install-build-wrapper@v4
26+
-name:Run Build Wrapper
27+
run:|
28+
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release
2229
-name:SonarQube Scan
23-
uses:SonarSource/sonarcloud-github-action@v2.2.0
24-
with:
25-
projectBaseDir:.
30+
uses:SonarSource/sonarqube-scan-action@v4
2631
env:
27-
SONAR_TOKEN:${{ secrets.SONAR_TOKEN }}
32+
SONAR_TOKEN:${{ secrets.SONARCLOUD_TOKEN }}# Put the name of your token here
33+
with:
34+
args:>
35+
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"

‎sonar-project.properties‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1+
sonar.projectName=IoT-uFSM
12
sonar.projectKey=hemonserrat_IoT-uFSM
23
sonar.organization=hemonserrat-github
4+
sonar.projectVersion=1.0
35

6+
# =====================================================
7+
# Properties that will be shared amongst all modules
8+
# =====================================================
49

5-
# This is the name and version displayed in the SonarCloud UI.
6-
#sonar.projectName=IoT-uFSM
7-
#sonar.projectVersion=1.0
8-
9-
10-
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
# SQ standard properties
1111
#sonar.sources=.
12-
13-
# Encoding of the source code. Default is default system encoding
1412
#sonar.sourceEncoding=UTF-8
13+
sonar.exclusions=docs/**
1514

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp