Skip to content

Commit e3e264e

Browse files
authored
Update GitHub Actions versions and Sonar scan args (#13)
1 parent 0df1193 commit e3e264e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212
env:
1313
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1818

1919
- name: Set up msbuild
2020
uses: microsoft/setup-msbuild@v2
2121
- name: Setup VSTest.console.exe # Needed to run tests
22-
uses: darenm/Setup-VSTest@v1.2
22+
uses: darenm/Setup-VSTest@v1.3
2323
- name: Install OpenCppCoverage # Needed to generate coverage
2424
run: |
2525
curl -L https://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.9.0/OpenCppCoverageSetup-x64-0.9.9.0.exe -o OpenCppCoverageSetup.exe
2626
Start-Process -FilePath .\OpenCppCoverageSetup.exe -ArgumentList "/SUPRESSMSGBOXES /NORESTART /VERYSILENT" -NoNewWindow -Wait
2727
2828
- name: Install Build Wrapper
29-
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v4
29+
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v7
3030

3131
- name: Run Build Wrapper
3232
run: |
@@ -39,10 +39,10 @@ jobs:
3939
run: |
4040
&"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --cover_children --sources=$(pwd) --modules test*\*\test*.dll "--export_type=cobertura:cobertura.xml" -- vstest.console.exe test1\*\test1.dll test2\*\test2.dll
4141
- name: SonarQube Scan
42-
uses: SonarSource/sonarqube-scan-action@v4
42+
uses: SonarSource/sonarqube-scan-action@v7
4343
env:
4444
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} # Put the name of your token here
4545
with:
4646
args: >
47-
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
48-
--define sonar.cfamily.cobertura.reportPaths="cobertura.xml"
47+
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json
48+
--define sonar.cfamily.cobertura.reportPaths=cobertura.xml

0 commit comments

Comments
 (0)