File tree 4 files changed +3
-34
lines changed
4 files changed +3
-34
lines changed Original file line number Diff line number Diff line change 3
3
4
4
name : Java CI with Maven
5
5
6
- on :
7
- push :
8
- branches : [ master ]
9
- pull_request :
10
- branches : [ master ]
6
+ on : [push, pull_request]
11
7
12
8
jobs :
13
9
build :
@@ -16,22 +12,12 @@ jobs:
16
12
17
13
steps :
18
14
- uses : actions/checkout@v2
19
- - name : Set up JDK 11
15
+ - name : Set up JDK
20
16
uses : actions/setup-java@v2
21
17
with :
22
- java-version : ' 11 '
18
+ java-version : ' 17 '
23
19
distribution : ' adopt'
24
20
cache : maven
25
21
- name : Build with Maven
26
22
run : mvn -B package --file pom.xml
27
23
28
- - name : SonarCloud Scan
29
- run : |
30
- if ["$SONAR_TOKEN" == ""]; then
31
- echo "Sonar secure variables NOT available"
32
- else
33
- echo "Sonar secure variables ARE available"
34
- mvn -P coverage clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.projectKey=ricksbrown_cowsay -Dsonar.organization="ricksbrown" -Dsonar.sources=. -Dsonar.inclusions=src/main/** -Dsonar.host.url="https://sonarcloud.io"
35
- fi
36
- env :
37
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[ ![ Java CI with Maven] ( https://github.com/ricksbrown/cowsay/actions/workflows/maven.yml/badge.svg )] ( https://github.com/ricksbrown/cowsay/actions/workflows/maven.yml )
2
2
[ ![ CodeQL] ( https://github.com/ricksbrown/cowsay/actions/workflows/codeql-analysis.yml/badge.svg )] ( https://github.com/ricksbrown/cowsay/actions/workflows/codeql-analysis.yml )
3
3
[ ![ Javadocs] ( https://javadoc.io/badge/com.github.ricksbrown/cowsay.svg )] ( https://javadoc.io/doc/com.github.ricksbrown/cowsay )
4
- [ ![ Security Rating] ( https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=security_rating )] ( https://sonarcloud.io/dashboard?id=ricksbrown_cowsay )
5
- [ ![ Reliability Rating] ( https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=reliability_rating )] ( https://sonarcloud.io/dashboard?id=ricksbrown_cowsay )
6
- [ ![ Maintainability Rating] ( https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=sqale_rating )] ( https://sonarcloud.io/dashboard?id=ricksbrown_cowsay )
7
- [ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=ricksbrown_cowsay&metric=coverage )] ( https://sonarcloud.io/dashboard?id=ricksbrown_cowsay )
8
4
9
5
# Cowsay
10
6
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments