Skip to content

Commit

Permalink
refactor: update GH action; refactor: log all in game test tasks;
Browse files Browse the repository at this point in the history
  • Loading branch information
MJaroslav committed May 30, 2024
1 parent 0bae2e2 commit c28f7e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDKs
uses: actions/setup-java@v4
with:
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run all tests headless
uses: GabrielBB/xvfb-action@v1
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew test --info --stacktrace
run: ./gradlew check --info --stacktrace
env:
MCIGT_HAS_DISPLAY: true
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ runServer {
args += ["--tweakClass", "org.spongepowered.asm.launch.MixinTweaker"]
}

testClient {
logOnlyTests = false
args += ["--tweakClass", "org.spongepowered.asm.launch.MixinTweaker"]
}

testServer {
logOnlyTests = false
args += ["--twealClass", "org.spongepowered.asm.launch.MixinTweaker"]
}

def outSrgFile = "${tasks.compileJava.temporaryDir}/outSrg.srg"
def outRefMapFile = "${tasks.compileJava.temporaryDir}/mixin.${project.name.replace(" ", "").toLowerCase()}.refmap.json"

Expand Down

0 comments on commit c28f7e2

Please sign in to comment.