diff --git a/.github/workflows/1.20.2.yml b/.github/workflows/1.20.2.yml index 57a20c5d..ef048475 100644 --- a/.github/workflows/1.20.2.yml +++ b/.github/workflows/1.20.2.yml @@ -86,67 +86,128 @@ jobs: name: ${{ env.XP_NEO }} path: neo/build/libs/${{ env.XP_NEO }}.jar if-no-files-found: error - - - name: Set CI Test Env Var - run: echo "XP_CI_TEST=true" >> $GITHUB_ENV - - - name: Setup Fabric Test Mods - run: | - mkdir -p run/mods && cp fabric/build/libs/${{ env.XP_FABRIC }}.jar run/mods \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ env.MINIMAP_VERSION_FABRIC }}_Fabric_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ env.MINIMAP_VERSION_FABRIC }}_Fabric_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ env.WORLDMAP_VERSION_FABRIC }}_Fabric_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ env.WORLDMAP_VERSION_FABRIC }}_Fabric_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ - - - name: Fabric Test - uses: headlesshq/mc-runtime-test@3.0.0 - with: - mc: ${{ env.MINECRAFT_VERSION }} - modloader: fabric - regex: .*fabric.* - mc-runtime-test: fabric - fabric-api: 0.91.6 - java: 17 - xvfb: false - headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true - cache-mc: false - - - name: Cleanup Test - run: rm -rf run/ && rm -rf HeadlessMC/ && rm headlessmc-*.jar && rm -rf ~/.minecraft - - - name: Setup Forge Test - run: | - mkdir -p run/mods && cp forge/build/libs/${{ env.XP_FORGE }}.jar run/mods \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ env.MINIMAP_VERSION_FORGE }}_Forge_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ env.MINIMAP_VERSION_FORGE }}_Forge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ env.WORLDMAP_VERSION_FORGE }}_Forge_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ env.WORLDMAP_VERSION_FORGE }}_Forge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ - - - name: Forge Test - uses: headlesshq/mc-runtime-test@3.0.0 - with: - mc: ${{ env.MINECRAFT_VERSION }} - modloader: forge - regex: .*forge.* - mc-runtime-test: lexforge - java: 17 - xvfb: false - headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true - cache-mc: false - - - name: Cleanup Test - run: rm -rf run/ && rm -rf HeadlessMC/ && rm headlessmc-*.jar && rm -rf ~/.minecraft - - - name: Setup Neo Test - run: | - mkdir -p run/mods && cp neo/build/libs/${{ env.XP_NEO }}.jar run/mods \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ env.MINIMAP_VERSION_NEO }}_NeoForge_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ env.MINIMAP_VERSION_NEO }}_NeoForge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ - && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ env.WORLDMAP_VERSION_NEO }}_NeoForge_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ env.WORLDMAP_VERSION_NEO }}_NeoForge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ - - - name: Neo Test - uses: headlesshq/mc-runtime-test@3.0.0 - with: - mc: ${{ env.MINECRAFT_VERSION }} - modloader: neoforge - regex: .*neoforge.* - mc-runtime-test: neoforge - java: 17 - xvfb: false - headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true - cache-mc: false + outputs: + worldmap_version_fabric: ${{ env.WORLDMAP_VERSION_FABRIC }} + worldmap_version_forge: ${{ env.WORLDMAP_VERSION_FORGE }} + worldmap_version_neo: ${{ env.WORLDMAP_VERSION_NEO }} + minimap_version_fabric: ${{ env.MINIMAP_VERSION_FABRIC }} + minimap_version_forge: ${{ env.MINIMAP_VERSION_FORGE }} + minimap_version_neo: ${{ env.MINIMAP_VERSION_NEO }} + xp_fabric: ${{ env.XP_FABRIC }} + xp_forge: ${{ env.XP_FORGE }} + xp_neo: ${{ env.XP_NEO }} + + test-fabric: + runs-on: ubuntu-latest + needs: + - build + steps: + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Download job artifacts + uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: artifacts/ + + - name: Set CI Test Env Var + run: echo "XP_CI_TEST=true" >> $GITHUB_ENV + + - name: Setup Fabric Test Mods + run: | + mkdir -p run/mods && cp artifacts/${{ needs.build.outputs.xp_fabric }}.jar run/mods \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ needs.build.outputs.minimap_version_fabric }}_Fabric_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ needs.build.outputs.minimap_version_fabric }}_Fabric_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ needs.build.outputs.worldmap_version_fabric }}_Fabric_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ needs.build.outputs.worldmap_version_fabric }}_Fabric_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ + + - name: Fabric Test + uses: headlesshq/mc-runtime-test@3.0.0 + with: + mc: ${{ env.MINECRAFT_VERSION }} + modloader: fabric + regex: .*fabric.* + mc-runtime-test: fabric + fabric-api: 0.91.6 + java: 17 + xvfb: false + headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true + cache-mc: true + + test-forge: + runs-on: ubuntu-latest + needs: + - build + steps: + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Download job artifacts + uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: artifacts/ + + - name: Set CI Test Env Var + run: echo "XP_CI_TEST=true" >> $GITHUB_ENV + + - name: Setup Forge Test + run: | + mkdir -p run/mods && cp artifacts/${{ needs.build.outputs.xp_forge }}.jar run/mods \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ needs.build.outputs.minimap_version_forge }}_Forge_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ needs.build.outputs.minimap_version_forge }}_Forge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ needs.build.outputs.worldmap_version_forge }}_Forge_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ needs.build.outputs.worldmap_version_forge }}_Forge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ + + - name: Forge Test + uses: headlesshq/mc-runtime-test@3.0.0 + with: + mc: ${{ env.MINECRAFT_VERSION }} + modloader: forge + regex: .*forge.* + mc-runtime-test: lexforge + java: 17 + xvfb: false + headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true + cache-mc: true + + test-neo: + runs-on: ubuntu-latest + needs: + - build + steps: + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Download job artifacts + uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: artifacts/ + + - name: Set CI Test Env Var + run: echo "XP_CI_TEST=true" >> $GITHUB_ENV + + - name: Setup Neo Test + run: | + mkdir -p run/mods && cp artifacts/${{ needs.build.outputs.xp_neo }}.jar run/mods \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-minimap/${{ needs.build.outputs.minimap_version_neo}}_NeoForge_${{ env.MINECRAFT_VERSION }}/xaeros-minimap-${{ needs.build.outputs.minimap_version_neo }}_NeoForge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ \ + && wget https://api.modrinth.com/maven/maven/modrinth/xaeros-world-map/${{ needs.build.outputs.worldmap_version_neo }}_NeoForge_${{ env.MINECRAFT_VERSION }}/xaeros-world-map-${{ needs.build.outputs.worldmap_version_neo }}_NeoForge_${{ env.MINECRAFT_VERSION }}.jar -P run/mods/ + + - name: Neo Test + uses: headlesshq/mc-runtime-test@3.0.0 + with: + mc: ${{ env.MINECRAFT_VERSION }} + modloader: neoforge + regex: .*neoforge.* + mc-runtime-test: neoforge + java: 17 + xvfb: false + headlessmc-command: -lwjgl --jvm -Djava.awt.headless=true + cache-mc: true