Skip to content

Commit b88a578

Browse files
authored
Merge pull request #19 from tupilabs/fix-ci
Fix CI
2 parents 6c982b5 + f697304 commit b88a578

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,31 @@ 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+
- name: Build with Maven
27+
run: mvn -B clean test install --file pom.xml
1728
- name: Analyze with SonarCloud
1829
run: |
1930
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
2136
fi
2237
env:
2338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)