mirror of
https://github.com/Doctorado-ML/mufs.git
synced 2025-08-18 17:15:52 +00:00
Patch main.yml
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -43,13 +43,14 @@ jobs:
|
|||||||
coverage report -m --fail-under=100
|
coverage report -m --fail-under=100
|
||||||
- name: Get project version
|
- name: Get project version
|
||||||
run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||||
|
- name: Override Coverage Source Path for Sonar
|
||||||
|
run: sed -i "s/<source>\/home\/runner\/work\/repo<\/source>/<source>\/github\/workspace<\/source>/g" .report/coverage.xml
|
||||||
- name: SonarQube scanner
|
- name: SonarQube scanner
|
||||||
uses: sonarsource/sonarqube-scan-action@master
|
uses: sonarsource/sonarqube-scan-action@master
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
with:
|
with:
|
||||||
projectBaseDir: mufs
|
|
||||||
args: >
|
args: >
|
||||||
-Dsonar.projectVersion=${{ env.project_version }}
|
-Dsonar.projectVersion=${{ env.project_version }}
|
||||||
-Dsonar.python.coverage.reportPaths=.report/coverage.xml
|
-Dsonar.python.coverage.reportPaths=.report/coverage.xml
|
||||||
|
Reference in New Issue
Block a user