File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 14
14
matrix :
15
15
os : [ubuntu-latest, windows-latest, macos-latest]
16
16
java : [ '11', '17', '21' ]
17
+ include :
18
+ # lengthy build steps should only be performed on linux with Java 17 (Sonarcloud analysis, deployment)
19
+ - os : ubuntu-latest
20
+ java : ' 17'
21
+ isMainBuildEnv : true
17
22
fail-fast : false
18
23
19
24
runs-on : ${{ matrix.os }}
27
32
cache : ' maven'
28
33
29
34
- name : Build with Maven
35
+ if : ' !matrix.isMainBuildEnv'
30
36
run : ./mvnw verify -e -B -V
31
37
38
+ - name : Build with Maven (incl. Sonarcloud analysis)
39
+ if : ' matrix.isMainBuildEnv'
40
+ env :
41
+ # SonarCloud access token and project coordinates provided in context of https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4700
42
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
43
+ run : ./mvnw verify -Pcode-coverage -e -B -V org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }}
Original file line number Diff line number Diff line change 9
9
```
10
10
11
11
[ ![ build] ( https://github.com/eclipse/sisu.inject/actions/workflows/build.yml/badge.svg?event=push )] ( https://github.com/eclipse/sisu.inject/actions/workflows/build.yml )
12
- [ ![ maintainability] ( https://sonarcloud.io/api/project_badges/measure?project=org. eclipse.sisu%3Asisu- inject&metric=sqale_rating )] ( https://sonarcloud.io/summary/overall?id=org. eclipse.sisu%3Asisu- inject )
12
+ [ ![ maintainability] ( https://sonarcloud.io/api/project_badges/measure?project=eclipse-sisu_sisu. inject&metric=sqale_rating )] ( https://sonarcloud.io/summary/overall?id=eclipse-sisu_sisu. inject )
13
13
[ ![ license] ( https://img.shields.io/badge/license-EPL_1.0-blue.svg )] ( https://www.eclipse.org/legal/epl-v10.html )
14
14
15
15
Sisu is a modular [ JSR330] ( https://javax-inject.github.io/javax-inject/ ) -based container that supports classpath scanning, auto-binding, and dynamic auto-wiring.
Original file line number Diff line number Diff line change @@ -624,10 +624,6 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
624
624
<groupId >org.apache.maven.plugins</groupId >
625
625
<artifactId >maven-enforcer-plugin</artifactId >
626
626
</plugin >
627
- <plugin >
628
- <groupId >org.jacoco</groupId >
629
- <artifactId >jacoco-maven-plugin</artifactId >
630
- </plugin >
631
627
</plugins >
632
628
</build >
633
629
@@ -689,5 +685,16 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
689
685
</plugins >
690
686
</build >
691
687
</profile >
688
+ <profile >
689
+ <id >code-coverage</id >
690
+ <build >
691
+ <plugins >
692
+ <plugin >
693
+ <groupId >org.jacoco</groupId >
694
+ <artifactId >jacoco-maven-plugin</artifactId >
695
+ </plugin >
696
+ </plugins >
697
+ </build >
698
+ </profile >
692
699
</profiles >
693
700
</project >
You can’t perform that action at this time.
0 commit comments