-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (34 loc) · 821 Bytes
/
maven.yml
File metadata and controls
40 lines (34 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'build test'
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ 11, 17, 21, 25 ]
include:
- os: windows-latest
java: 25
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Build and test
shell: bash
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
# Testcontainers doesn't support Windows containers
mvn clean test -U
else
mvn clean verify -U
fi