# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: Java CI with Maven on: - push - pull_request jobs: build: runs-on: ubuntu-latest strategy: matrix: java: # Java LTS versions - '8' # 2030/12 - '11' # 2032/01 - '17' # 2029/09 - '21' # 2031/09 name: Java ${{ matrix.Java }} sample steps: - uses: actions/checkout@v2 - name: Setup java uses: actions/setup-java@v2 with: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Build with Maven run: mvn -B package --file pom.xml - name: Test with Maven run: mvn test