Skip to content

Commit

Permalink
fix(ci): fix pr checker
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Aug 11, 2024
1 parent 7a3786e commit 5dd700c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -56,6 +47,9 @@ jobs:
echo "JAR_VERSION=$JAR_VERSION" >> "$GITHUB_ENV"
sed -i "s/<version>UNOFFICIAL<\/version>/<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:
Expand Down

0 comments on commit 5dd700c

Please sign in to comment.