diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 233110200c..926218ab4d 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -31,20 +31,11 @@ jobs: java-version: ${{ vars.JAVA_CI_VERSION }} java-package: jdk architecture: x64 - - - name: Cache Maven packages - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Codestyle Check run: mvn -s .mvn/settings.xml -B spotless:check compile --errors - - name: Build with Maven - run: mvn -s .mvn/settings.xml package --errors - # Setup for the preview build - name: Environment Setup id: env-setup @@ -56,6 +47,9 @@ jobs: echo "JAR_VERSION=$JAR_VERSION" >> "$GITHUB_ENV" sed -i "s/UNOFFICIAL<\/version>/$JAR_VERSION<\/version>/g" pom.xml + - name: Build with Maven + run: mvn -s .mvn/settings.xml package --errors + - name: Upload the artifact uses: actions/upload-artifact@v3 with: