Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/local-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ inputs:
hmc-version:
description: 'The version of headlessmc to download.'
required: false
default: '1.10.2'
default: '2.1.0'

runs:
using: "composite"
Expand Down Expand Up @@ -109,7 +109,7 @@ runs:
shell: bash
- name: Download mc-runtime-test jar ${{ inputs.mc-runtime-test }}
if: ${{ inputs.mc-runtime-test != 'none' }}
run: wget -O run/mods/mc-runtime-test-${{ inputs.mc }}-2.3.1-${{ inputs.mc-runtime-test }}-release.jar https://github.com/3arthqu4ke/mc-runtime-test/releases/download/2.3.1/mc-runtime-test-${{ inputs.mc }}-2.3.1-${{ inputs.mc-runtime-test }}-release.jar
run: wget -O run/mods/mc-runtime-test-${{ inputs.mc }}-2.4.0-${{ inputs.mc-runtime-test }}-release.jar https://github.com/3arthqu4ke/mc-runtime-test/releases/download/2.4.0/mc-runtime-test-${{ inputs.mc }}-2.4.0-${{ inputs.mc-runtime-test }}-release.jar
shell: bash
- name: Download fabric-api jar ${{ inputs.fabric-api }}
if: ${{ inputs.fabric-api != 'none' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Configure Dummy Assets
run: echo hmc.assets.dummy=true >> HeadlessMC/config.properties
- name: Get HeadlessMC
run: wget -O headlessmc-launcher.jar https://github.com/3arthqu4ke/headlessmc/releases/download/1.10.2/headlessmc-launcher-1.10.2.jar
run: wget -O headlessmc-launcher.jar https://github.com/3arthqu4ke/headlessmc/releases/download/2.1.0/headlessmc-launcher-2.1.0.jar
- name: Download 1.20.4
run: java -jar headlessmc-launcher.jar --command download 1.20.4
- name: Download Fabric 1.20.4
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run-gametests-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
run: mkdir -p run/mods
- name: Copy mod files
run: |
cp gametest-jars/clientgametest-1.20.6-2.3.1-fabric.jar run/mods
cp gametest-jars/clientgametest-1.20.6-2.3.1-neoforge.jar run/mods
cp gametest-jars/clientgametest-1.20.6-2.3.1-lexforge.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.3.1-fabric-release.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.3.1-lexforge-release.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.3.1-neoforge-release.jar run/mods
cp gametest-jars/clientgametest-1.20.6-2.4.0-fabric.jar run/mods
cp gametest-jars/clientgametest-1.20.6-2.4.0-neoforge.jar run/mods
cp gametest-jars/clientgametest-1.20.6-2.4.0-lexforge.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.4.0-fabric-release.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.4.0-lexforge-release.jar run/mods
cp latest-jars/mc-runtime-test-1.20.6-2.4.0-neoforge-release.jar run/mods
- name: Run game for version
id: local-action
uses: ./.github/actions/local-action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-specific-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ on:
hmc-version:
description: 'The version of headlessmc to download.'
required: false
default: '1.10.2'
default: '2.1.0'
type: string

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-specific-xvfb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:
hmc-version:
description: 'The version of headlessmc to download.'
required: false
default: '1.10.2'
default: '2.1.0'
type: string

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-specific.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:
hmc-version:
description: 'The version of headlessmc to download.'
required: false
default: '1.10.2'
default: '2.1.0'
type: string

jobs:
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ registered.

Mc-Runtime-Test currently supports the following Minecraft versions and modloaders:
You can configure it to use any other version, but in that case you need to set `mc-runtime-test` to `none` and provide another way for the game to exit, or the workflow will run indefinitely.

<div align="center">

| Version | Forge | Fabric | NeoForge |
| :-: | :-: | :-: | :-: |
| 1.21 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 1.21 - 1.21.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 1.20.2 - 1.20.6 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 1.20.1 | :white_check_mark: | :white_check_mark: | :warning: |
| 1.19 - 1.19.4 | :white_check_mark: | :white_check_mark: | - |
Expand All @@ -46,6 +49,8 @@ You can configure it to use any other version, but in that case you need to set
| 1.8.9 | :white_check_mark: | :warning: | - |
| 1.7.10 | :white_check_mark: | :warning: | - |

</div>

Versions marked with :warning: have not been tested yet, due to not being supported by HeadlessMC, e.g. fabric legacy versions.

# Example
Expand All @@ -64,15 +69,20 @@ jobs:
run: mkdir -p run/mods && cp build/libs/<your-mod>.jar run/mods
# Call this Action to run the client
- name: Run the MC client
uses: 3arthqu4ke/mc-runtime-test@2.3.1
uses: 3arthqu4ke/mc-runtime-test@2.4.0
with:
mc: 1.20.4
modloader: fabric
regex: .*fabric.*
mc-runtime-test: fabric
java: 17
```
An example workflow in action can be found [here](https://github.com/3arthqu4ke/hmc-optimizations/blob/1.20.4/.github/workflows/run-fabric.yml).
An example workflow in action can be found
[here](https://github.com/3arthqu4ke/hmc-optimizations/blob/1.20.4/.github/workflows/run-fabric.yml).
An example for a large matrix workflow
which tests 20 different versions of Minecraft
at once can be found
[here](https://github.com/3arthqu4ke/hmc-specifics/blob/main/.github/workflows/run-matrix.yml).

# Inputs
- `mc`: The MC version to use, e.g. `1.20.4`.
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ inputs:
hmc-version:
description: 'The version of headlessmc to download.'
required: false
default: '1.10.2'
default: '2.1.0'

runs:
using: "composite"
Expand Down Expand Up @@ -106,7 +106,7 @@ runs:
shell: bash
- name: Download mc-runtime-test jar ${{ inputs.mc-runtime-test }}
if: ${{ inputs.mc-runtime-test != 'none' }}
run: wget -O run/mods/mc-runtime-test-${{ inputs.mc }}-2.3.1-${{ inputs.mc-runtime-test }}-release.jar https://github.com/3arthqu4ke/mc-runtime-test/releases/download/2.3.1/mc-runtime-test-${{ inputs.mc }}-2.3.1-${{ inputs.mc-runtime-test }}-release.jar
run: wget -O run/mods/mc-runtime-test-${{ inputs.mc }}-2.4.0-${{ inputs.mc-runtime-test }}-release.jar https://github.com/3arthqu4ke/mc-runtime-test/releases/download/2.4.0/mc-runtime-test-${{ inputs.mc }}-2.4.0-${{ inputs.mc-runtime-test }}-release.jar
shell: bash
- name: Download fabric-api jar ${{ inputs.fabric-api }}
if: ${{ inputs.fabric-api != 'none' }}
Expand Down
2 changes: 1 addition & 1 deletion api/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
project_version = 2.3.1
project_version = 2.4.0