name: Pull Request CI on: [pull_request] env: JAVA_VERSION: 17 jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up JDK ${{ env.JAVA_VERSION }} uses: actions/setup-java@v3 with: java-version: ${{ env.JAVA_VERSION }} distribution: 'temurin' cache: 'maven' - name: Build with Maven run: mvn -B package