Avoid Android Gradle project for desktop tests

This commit is contained in:
Butterscotch!
2025-12-09 02:55:12 -05:00
parent 819481adcd
commit 712fa6a1ad
2 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ jobs:
run: ./gradlew spotlessCheck
- name: Test with Gradle
run: ./gradlew test
run: ./gradlew :server:core:test :server:desktop:test
build:
runs-on: ubuntu-latest
@@ -65,7 +65,7 @@ jobs:
uses: gradle/actions/setup-gradle@v5
- name: Build with Gradle
run: ./gradlew shadowJar
run: ./gradlew :server:desktop:shadowJar
- name: Upload the Server JAR as a Build Artifact
uses: actions/upload-artifact@v5

View File

@@ -43,9 +43,9 @@ tasks.preBuild {
// Validate release keystore
val storeFile = android.buildTypes.getByName("release").signingConfig?.storeFile
if (storeFile?.isFile != true) {
throw GradleException("KeyStore file does not exist or is not a file: ${storeFile?.path}")
throw GradleException("Android KeyStore file does not exist or is not a file: ${storeFile?.path}")
} else if (storeFile.length() <= 0) {
throw GradleException("KeyStore file is empty: ${storeFile.path}")
throw GradleException("Android KeyStore file is empty: ${storeFile.path}")
}
}