# This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: Build on: [push, pull_request] jobs: buildAndTest: runs-on: ubuntu-latest strategy: matrix: java-version: [ 8, 11, 17 ] steps: - name: Checkout uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v2 with: distribution: temurin java-version: ${{ matrix.java-version }} - name: Build and test with maven run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml