Skip to content

Commit

Permalink
Changed build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alpertron committed Jan 29, 2024
1 parent 5b4cf75 commit 6538f7b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,12 @@ jobs:
- name: install gcovr 5.0
run: |
pip install gcovr==5.0 # 5.1 is not supported
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v1
- name: Run build-wrapper
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make clean all
- name: Run tests to generate coverage statistics
run: |
chmod 755 coverage
./coverage
- name: Run sonar-scanner
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
--define sonar.host.url="${{ env.SONAR_SERVER_URL }}" \
--define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" \
--define sonar.coverageReportPaths=coverage.xml \
--define sonar.cfamily.cache.enabled=false
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 6538f7b

Please sign in to comment.