From 56c7e9196d898abceb8475dd30f02f8a545b4b6f Mon Sep 17 00:00:00 2001 From: 33 <3205159+xfl03@users.noreply.github.com> Date: Mon, 21 Sep 2026 00:59:21 +0800 Subject: [PATCH] feat: add smoke test workflow for Minecraft 26.2 --- .github/workflows/pull-request.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7ed5445..8d36c7f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,5 +1,7 @@ name: Pull Request on: + push: + branches: [ci/minecraft-smoke] pull_request: types: [opened, synchronize, reopened] branches: [15-develop] @@ -14,3 +16,31 @@ jobs: - uses: ./.github/actions/build with: artifact-name: CustomSkinLoader-PR-${{ github.run_number }} + + smoke: + name: Minecraft Smoke Test + needs: build + runs-on: ubuntu-latest + timeout-minutes: 20 + env: + LIBGL_ALWAYS_SOFTWARE: 'true' + steps: + - uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '25' + + - uses: actions/download-artifact@v8 + with: + name: CustomSkinLoader-PR-${{ github.run_number }} + path: run/mods + + - uses: headlesshq/mc-runtime-test@4.5.1 + with: + mc: '26.2' + modloader: neoforge + regex: '.*neoforge.*' + java: '25' + mc-runtime-test: neoforge + dummy-assets: 'false' + headlessmc-command: '--jvm "-Djava.awt.headless=true -DMcRuntimeGameTest=false"'