Skip to content

Commit a17cf87

Browse files
Merge pull request #26 from mercari/add_test_matrix
Add test matrix
2 parents 1ac69d2 + cf6bf2e commit a17cf87

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/test.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
java-version: [11, 17, 21]
912

1013
steps:
1114
- uses: actions/checkout@v4
1215
- uses: actions/setup-java@v4
1316
with:
14-
java-version: "11"
17+
java-version: ${{ matrix.java-version }}
1518
distribution: "temurin"
1619
cache: 'maven'
1720
- name: Build with Maven

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
<slf4j.version>2.0.6</slf4j.version>
7777
<logback.version>1.4.5</logback.version>
7878
<junit.version>5.7.0</junit.version>
79-
<spotless.version>2.33.0</spotless.version>
8079
<shade.plugin.version>3.4.1</shade.plugin.version>
8180
<compiler.plugin.version>3.10.1</compiler.plugin.version>
8281
<surefire.plugin.version>2.22.2</surefire.plugin.version>
82+
<spotless.version>2.43.0</spotless.version>
8383
</properties>
8484

8585
<distributionManagement>
@@ -243,7 +243,7 @@
243243
<configuration>
244244
<java>
245245
<googleJavaFormat>
246-
<version>1.8</version>
246+
<version>1.22.0</version>
247247
<style>GOOGLE</style>
248248
</googleJavaFormat>
249249
<removeUnusedImports />

0 commit comments

Comments
 (0)