File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 4242 - name : Run prospector linter
4343 run : pipenv run prospector -F python/aswfdocker --output-format xunit > test-prospector-results.xml
4444
45+ - name : Publish Unit Test Results
46+ uses : EnricoMi/publish-unit-test-result-action@v1.3
47+ if : always()
48+ with :
49+ github_token : ${{ secrets.GITHUB_TOKEN }}
50+ check_name : Unit Test Results
51+ files : " **/*.xml"
52+
53+ - name : Prepare sonar variables
54+ run : |
55+ echo "::set-env name=SONAR_PROJECT_VERSION::`git log $tag -n 1 --date=short --pretty=\"%ad\"`"
56+ echo "::set-env name=SONAR_PROJECT_DATE::`pipenv run python setup.py --version`"
57+
4558 - name : SonarCloud Scan
4659 uses : sonarsource/sonarcloud-github-action@master
4760 if : always()
5063 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5164 with :
5265 args : >
53- -Dsonar.organization=academysoftwarefoundation
54- -Dsonar.projectKey=AcademySoftwareFoundation_aswf_docker
55- -Dsonar.sources=.
56- -Dsonar.host.url=https://sonarcloud.io
57- -Dsonar.login=$SONAR_TOKEN
58- -Dsonar.projectDate=`git log $tag -n 1 --date=short --pretty="%ad"`
59- -Dsonar.projectVersion=`pipenv run python setup.py --version`
66+ -Dsonar.projectDate=${{env.SONAR_PROJECT_VERSION}
67+ -Dsonar.projectVersion=${{env.SONAR_PROJECT_DATE}
You can’t perform that action at this time.
0 commit comments