File tree Expand file tree Collapse file tree 4 files changed +56
-1
lines changed Expand file tree Collapse file tree 4 files changed +56
-1
lines changed Original file line number Diff line number Diff line change 39
39
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
40
40
restore-keys : |
41
41
${{ runner.os }}-maven-
42
+ - name : Cache SonarCloud packages
43
+ uses : actions/cache@v2.1.2
44
+ if : matrix.java_version == '11'
45
+ with :
46
+ path : ~/.sonar/cache
47
+ key : ${{ runner.os }}-sonar
48
+ restore-keys : ${{ runner.os }}-sonar
42
49
- name : Run tests
43
- run : ./mvnw -V -B -ntp -ff verify
50
+ run : ./mvnw -V -B -ntp -ff verify jacoco:report
51
+ - name : Static Analysis (Sonar)
52
+ if : matrix.java_version == '11'
53
+ env :
54
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
56
+ run : ./mvnw -B -ntp -ff org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
44
57
- name : Release Snapshot
45
58
if : matrix.java_version == '11'
46
59
run : ./mvnw -V -B -ntp -ff deploy
Original file line number Diff line number Diff line change 32
32
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33
33
restore-keys : |
34
34
${{ runner.os }}-maven-
35
+ - name : Cache SonarCloud packages
36
+ uses : actions/cache@v2.1.2
37
+ if : matrix.java_version == '11'
38
+ with :
39
+ path : ~/.sonar/cache
40
+ key : ${{ runner.os }}-sonar
41
+ restore-keys : ${{ runner.os }}-sonar
35
42
- name : Run tests
36
43
run : ./mvnw -V -B -ntp -ff verify
44
+ - name : Static Analysis (Sonar)
45
+ if : matrix.java_version == '11'
46
+ env :
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
49
+ run : ./mvnw -B -ntp -ff org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
Original file line number Diff line number Diff line change 3
3
Compare two OpenAPI specifications (3.x) and render the difference to HTML plaintext, or Markdown files.
4
4
5
5
[ ![ Build] ( https://github.com/OpenAPITools/openapi-diff/workflows/Main%20Build/badge.svg )] ( https://github.com/OpenAPITools/openapi-diff/actions?query=branch%3Amaster+workflow%3A"Main+Build" )
6
+ [ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=OpenAPITools_openapi-diff&metric=alert_status )] ( https://sonarcloud.io/dashboard?id=OpenAPITools_openapi-diff )
6
7
[ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.openapitools.openapidiff/openapi-diff-core )] ( https://search.maven.org/artifact/org.openapitools.openapidiff/openapi-diff-core )
7
8
[ ![ Join the Slack chat room] ( https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange )] ( https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM )
8
9
Original file line number Diff line number Diff line change 69
69
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
70
70
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
71
71
<project .scm.id>github</project .scm.id>
72
+
73
+ <sonar .organization>openapitools</sonar .organization>
74
+ <sonar .projectKey>OpenAPITools_openapi-diff</sonar .projectKey>
75
+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
76
+ <sonar .moduleKey>${project.artifactId} </sonar .moduleKey>
77
+
72
78
<swagger-parser .version>2.0.22</swagger-parser .version>
73
79
<slf4j .version>1.7.30</slf4j .version>
74
80
</properties >
300
306
<version >1.6.8</version >
301
307
<extensions >true</extensions >
302
308
</plugin >
309
+ <plugin >
310
+ <groupId >org.jacoco</groupId >
311
+ <artifactId >jacoco-maven-plugin</artifactId >
312
+ <version >0.8.6</version >
313
+ </plugin >
314
+ <plugin >
315
+ <groupId >org.sonarsource.scanner.maven</groupId >
316
+ <artifactId >sonar-maven-plugin</artifactId >
317
+ <version >3.7.0.1746</version >
318
+ </plugin >
303
319
</plugins >
304
320
</pluginManagement >
305
321
<plugins >
341
357
</execution >
342
358
</executions >
343
359
</plugin >
360
+ <plugin >
361
+ <groupId >org.jacoco</groupId >
362
+ <artifactId >jacoco-maven-plugin</artifactId >
363
+ <executions >
364
+ <execution >
365
+ <id >jacoco-initialize</id >
366
+ <goals >
367
+ <goal >prepare-agent</goal >
368
+ </goals >
369
+ </execution >
370
+ </executions >
371
+ </plugin >
344
372
</plugins >
345
373
</build >
346
374
</project >
You can’t perform that action at this time.
0 commit comments