File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 8
8
build :
9
9
runs-on : ubuntu-latest
10
10
11
+ strategy :
12
+ matrix :
13
+ java_version :
14
+ - ' 8'
15
+ - ' 11'
16
+ - ' 17'
17
+ - ' 21'
18
+
11
19
steps :
12
20
- uses : actions/checkout@v4
13
21
- name : Set up JDK
14
22
uses : actions/setup-java@v2
15
23
with :
16
- java-version : ' 8'
24
+ java-version : ${{ matrix.java_version }}
25
+ distribution : temurin
26
+ - name : Build with Maven
27
+ run : mvn -B clean test install --file pom.xml
17
28
- name : Analyze with SonarCloud
18
29
run : |
19
30
if ["$SONAR_TOKEN" != ""]; then
20
- mvn -B verify sonar:sonar -Dsonar.projectKey=tupilabs_HumanNameParser.java -Dsonar.organization=tupilabs -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN || true
31
+ mvn -B verify sonar:sonar \
32
+ -Dsonar.projectKey=tupilabs_HumanNameParser.java \
33
+ -Dsonar.organization=tupilabs \
34
+ -Dsonar.host.url=https://sonarcloud.io \
35
+ -Dsonar.login=$SONAR_TOKEN || true
21
36
fi
22
37
env :
23
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments