Merge pull request #28 from gerking/main #52
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Build CI with Maven | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java toolchain | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
11 | |
18 | |
mvn-toolchain-id: | | |
JavaSE-11 | |
JavaSE-18 | |
cache: maven | |
- name: Build with Maven wrapper | |
uses: KnicKnic/[email protected] | |
with: | |
linux: ./mvnw -B package -DskipTests -P ci-build --file pom.xml | |
macos: ./mvnw -B package -DskipTests -P ci-build --file pom.xml | |
windows: mvnw.cmd -B package -DskipTests -P ci-build -f pom.xml | |
windowsShell: cmd | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |