Skip to content

Commit b6034c1

Browse files
Update CI
Add windows-latest strategy
1 parent f1fce74 commit b6034c1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/maven.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
1212

1313
strategy:
1414
matrix:
15+
os: [ ubuntu-latest ]
1516
java: [ 11, 17, 21 ]
17+
include:
18+
- os: windows-latest
19+
java: 25
1620

1721
steps:
1822
- name: Checkout
@@ -26,4 +30,11 @@ jobs:
2630
cache: 'maven'
2731

2832
- name: Build and test
29-
run: mvn clean verify -U
33+
shell: bash
34+
run: |
35+
if [ "${{ runner.os }}" == "Windows" ]; then
36+
# Testcontainers doesn't support Windows containers
37+
mvn clean test -U
38+
else
39+
mvn clean verify -U
40+
fi

0 commit comments

Comments
 (0)