-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.06 KB
/
ci.yml
File metadata and controls
42 lines (36 loc) · 1.06 KB
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
41
42
name: Java CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- name: Set up JDK 22
uses: actions/setup-java@v5
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Build and verify
run: ./mvnw --no-transfer-progress --batch-mode verify
- name: Run IT tests
shell: bash
run: |
MVN="./mvnw --no-transfer-progress --batch-mode verify -DskipITs=false -Dsurefire.skip=true"
if [[ "$RUNNER_OS" == "Linux" ]]; then
# Allocate a PTY so /dev/tty is available for the Terminal IT tests
script -q -e -c "$MVN" /dev/null
elif [[ "$RUNNER_OS" == "macOS" ]]; then
# BSD script: command args follow the output file
script -q /dev/null $MVN
else
$MVN
fi