Skip to content

Commit

Permalink
update gradle actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Feb 27, 2025
1 parent f1869df commit 0672b4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/gametests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Run Game Tests with Gradle
run: ./gradlew runGameTestServer
run: sh gradlew runGameTestServer

- name: Run Unit Tests with Gradle
run: ./gradlew test
run: sh gradlew test
8 changes: 3 additions & 5 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
with:
file: gradle.properties
all: true
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
Expand All @@ -52,12 +50,12 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Build with Gradle
run: ./gradlew build outputChangelog
run: sh gradlew build outputChangelog
env:
BUILD_NUMBER: ${{ github.run_number }}
GIT_COMMIT: ${{ github.sha }}
Expand All @@ -80,7 +78,7 @@ jobs:
target_commitish: ${{ github.sha }}

- name: Publish
run: ./gradlew curseforge modrinth publish
run: sh gradlew curseforge modrinth publish
env:
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down

0 comments on commit 0672b4f

Please sign in to comment.