File tree Expand file tree Collapse file tree 3 files changed +66
-1
lines changed Expand file tree Collapse file tree 3 files changed +66
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Sonar Cloud Maven Build
2
+ on :
3
+ # Trigger analysis when pushing in master or pull requests, and when creating
4
+ # a pull request.
5
+ push :
6
+ branches :
7
+ - main
8
+ - branch-sonarcloud
9
+ pull_request :
10
+ types :
11
+ - opened
12
+ - synchronize
13
+ - reopened
14
+
15
+ jobs :
16
+ build :
17
+ name : Build
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ with :
22
+ # Shallow clones should be disabled for a better relevancy of analysis
23
+ fetch-depth : 0
24
+ - name : Set up JDK 17
25
+ uses : actions/setup-java@v3
26
+ with :
27
+ java-version : ' 17'
28
+ distribution : ' corretto'
29
+ cache : ' maven'
30
+ - name : Cache Maven packages
31
+ uses : actions/cache@v1
32
+ with :
33
+ path : ~/.m2
34
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
35
+ restore-keys : ${{ runner.os }}-m2
36
+ - name : Cache SonarCloud packages
37
+ uses : actions/cache@v1
38
+ with :
39
+ path : ~/.sonar/cache
40
+ key : ${{ runner.os }}-sonar
41
+ restore-keys : ${{ runner.os }}-sonar
42
+ - name : Maven version
43
+ run : mvn -v
44
+ env :
45
+ # Needed to get some information about the pull request, if any
46
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
+ # SonarCloud access token should be generated from https://sonarcloud.io/account/security/
48
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
49
+ - name : Build and analyze
50
+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage
51
+ env :
52
+ # Needed to get some information about the pull request, if any
53
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
+ # SonarCloud access token should be generated from https://sonarcloud.io/account/security/
55
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ 0.4.0 (2023-08-29)
2
+ ------------------
3
+ * Changed yaml-doc-tool version to 0.4.0
4
+ * Updated fj-bom to 1.2.5
5
+ * Added sonar cloud analysis
6
+
1
7
0.3.2 (2022-12-01)
2
8
------------------
3
9
* Changed yaml-doc-tool version to 0.3.2
Original file line number Diff line number Diff line change 7
7
<parent >
8
8
<groupId >org.fugerit.java</groupId >
9
9
<artifactId >fj-bom</artifactId >
10
- <version >0 .2.3 </version >
10
+ <version >1 .2.5 </version >
11
11
<relativePath ></relativePath >
12
12
</parent >
13
13
29
29
<maven .compiler.target>1.8</maven .compiler.target>
30
30
<maven .compiler.source>1.8</maven .compiler.source>
31
31
<yaml-doc-version >${project.version} </yaml-doc-version >
32
+ <!-- sonar cloud configuration -->
33
+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
34
+ <sonar .organization>fugerit-org</sonar .organization>
35
+ <sonar .projectKey>fugerit-org_yaml-doc-maven-plugin</sonar .projectKey>
32
36
</properties >
33
37
34
38
<licenses >
You can’t perform that action at this time.
0 commit comments