File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ name: SonarQube + CNES Report
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
76 pull_request :
87
98jobs :
109 sonar-analysis :
1110 runs-on : ubuntu-latest
12-
1311 steps :
1412 - name : Checkout repository
1513 uses : actions/checkout@v4
@@ -24,17 +22,26 @@ jobs:
2422 env :
2523 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
2624 SONAR_HOST_URL : https://sonarqube.k8s-ants.inf.um.es
27-
25+
2826 # - name: Show SonarQube Dashboard URL
2927 # run: echo "See results: https://sonarqube.k8s-ants.inf.um.es/dashboard?id=idm-fluidos-aries-framework-go"
28+
29+ - name : Set up Java (for CNES CLI)
30+ uses : actions/setup-java@v4
31+ with :
32+ distribution : ' temurin'
33+ java-version : ' 17'
3034
3135 - name : Download CNES Report CLI
3236 run : |
33- curl -L -o sonar-cnes-report.jar https://github.com/cnescatlab/sonar-cnes-report/releases/latest/download/sonar-cnes-report.jar
37+ curl -fL -o sonar-cnes-report.jar \
38+ https://github.com/cnescatlab/sonar-cnes-report/releases/download/5.0.2/sonar-cnes-report-5.0.2.jar
39+ ls -l sonar-cnes-report.jar
3440
3541 - name : Generate CNES Report
3642 run : |
37- mkdir report
43+ mkdir -p report
44+ java -version
3845 java -jar sonar-cnes-report.jar \
3946 -s https://sonarqube.k8s-ants.inf.um.es \
4047 -t ${{ secrets.SONAR_TOKEN }} \
4754 with :
4855 name : sonarqube-cnes-report
4956 path : ./report
50-
You can’t perform that action at this time.
0 commit comments