Compile Java source files #54
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: Compile Java source files | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**/*.java' | |
- 'pom.xml' | |
- 'docs/antora.yml' | |
- '.github/workflows/maven-pr-builder.yaml' | |
schedule: | |
- cron: '15 2 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Maven compile | |
run: | | |
HZ_VERSION=$(grep full-version docs/antora.yml|sed "s/.*:[ ]*'\(.*\)'/\1/") | |
mvn --show-version --batch-mode --no-transfer-progress test "-Dhazelcast.version=$HZ_VERSION" |