Merge pull request #16365 from iterate-ch/dependabot/maven/org.codeha… #5680
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-12, macos-13, macos-14, ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Disable Testcontainers for Windows and MacOS | |
run: echo "args=-P=no-testcontainers" >> "$GITHUB_ENV" | |
shell: bash | |
if: runner.os == 'windows' || runner.os == 'macos' || runner.os == 'macos' | |
- run: msiexec /i setup\wix\Bonjour64.msi /Quiet /Passive /NoRestart | |
if: runner.os == 'windows' | |
- uses: ilammy/msvc-dev-cmd@v1 | |
if: runner.os == 'windows' | |
- uses: microsoft/setup-msbuild@v2 | |
if: runner.os == 'windows' | |
with: | |
msbuild-architecture: x64 | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn --no-transfer-progress verify -DskipITs -DskipSign ${{ env.args }} --batch-mode -Drevision=0 |