Skip to content

Commit bb3cf31

Browse files
committed
Fix CI
1 parent 6c982b5 commit bb3cf31

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,32 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010

11+
strategy:
12+
matrix:
13+
java_version:
14+
- '8'
15+
- '11'
16+
- '17'
17+
- '21'
18+
1119
steps:
1220
- uses: actions/checkout@v4
1321
- name: Set up JDK
1422
uses: actions/setup-java@v2
1523
with:
16-
java-version: '8'
24+
java-version: ${{ matrix.java_version }}
25+
distribution: temurin
26+
cache: 'maven'
27+
- name: Build with Maven
28+
run: mvn -B clean test install --file pom.xml
1729
- name: Analyze with SonarCloud
1830
run: |
1931
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
32+
mvn -B verify sonar:sonar \
33+
-Dsonar.projectKey=tupilabs_HumanNameParser.java \
34+
-Dsonar.organization=tupilabs \
35+
-Dsonar.host.url=https://sonarcloud.io \
36+
-Dsonar.login=$SONAR_TOKEN || true
2137
fi
2238
env:
2339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)