Skip to content

Commit

Permalink
upload test results if they fail
Browse files Browse the repository at this point in the history
and upload jars anyways
  • Loading branch information
rhysdh540 committed Nov 6, 2024
1 parent a9e54e7 commit dde44f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,23 @@ jobs:
run: ./gradlew build --stacktrace --no-daemon

- name: :smokeTest
id: smokeTest
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew :smokeTest --no-daemon

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: zume
path: |
**/build/libs/zume*.jar
build/libs/*mappings.txt
- name: Upload test results
if: steps.smokeTest.conclusion == 'failure'
uses: actions/upload-artifact@v4
with:
name: smokeTest
path: build/smokeTest/**/logs/**
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -607,19 +607,15 @@ val smokeTest by tasks.registering(SmokeTestTask::class) {
Config("forge", "1.18.2", extraArgs = listOf("--lwjgl=3.2.3")),
Config("forge", "1.16.5", extraArgs = listOf("--lwjgl=3.2.3")),
Config("forge", "1.14.4", dependencies = listOf(
// "mixinbootstrap" to "https://github.com/LXGaming/MixinBootstrap/releases/download/v1.1.0/_MixinBootstrap-1.1.0.jar"
"maven.modrinth:mixinbootstrap:1.1.0"
), extraArgs = listOf("--lwjgl=3.2.3")),
Config("forge", "1.12.2", dependencies = listOf(
// "mixinbooter" to "https://github.com/CleanroomMC/MixinBooter/releases/download/9.3/mixinbooter-9.3.jar"
"zone.rong:mixinbooter:9.3"
)),
Config("forge", "1.8.9", dependencies = listOf(
// "mixinbooter" to "https://github.com/CleanroomMC/MixinBooter/releases/download/9.3/mixinbooter-9.3.jar"
"zone.rong:mixinbooter:9.3"
)),
Config("forge", "1.7.10", dependencies = listOf(
// "unimixins" to "https://github.com/LegacyModdingMC/UniMixins/releases/download/0.1.19/+unimixins-all-1.7.10-0.1.19.jar"
"com.github.LegacyModdingMC.UniMixins:unimixins-all-1.7.10:0.1.19"
)),
)
Expand Down

0 comments on commit dde44f0

Please sign in to comment.