diff --git a/.github/workflows/minecraft-1.20.yml b/.github/workflows/minecraft-1.20.yml new file mode 100644 index 00000000..32599ccf --- /dev/null +++ b/.github/workflows/minecraft-1.20.yml @@ -0,0 +1,13 @@ +name: MC 1.20 + +on: + push: + #TODO: remove feat-item + branches: [ "dev", "main", "master", "feat-item", "feat-multi-tests" ] + +jobs: + test: + uses: Fulminazzo/YAGL/.github/workflows/minecraft-test.yml@feat-multi-tests + with: + java-version: 17 + minecraft-version: "1.20.4-R0.1-SNAPSHOT" \ No newline at end of file diff --git a/.github/workflows/minecraft-test.yml b/.github/workflows/minecraft-test.yml new file mode 100644 index 00000000..8b03fc6d --- /dev/null +++ b/.github/workflows/minecraft-test.yml @@ -0,0 +1,30 @@ +on: + workflow_call: + inputs: + java-version: '8' + minecraft-version: "1.12.2-R0.1-SNAPSHOT" + +jobs: + test: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${ inputs.java-version } + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 + env: + MINECRAFT_VERSION: ${ inputs.minecraft-version } + + - name: Test with Gradle Wrapper + run: ./gradlew test + env: + MINECRAFT_VERSION: ${ inputs.minecraft-version }