Skip to content

Commit

Permalink
Created first test of Github actions for Minecraft versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 4, 2024
1 parent 8e04dc8 commit 3c682c2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/minecraft-1.20.yml
Original file line number Diff line number Diff line change
@@ -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"
30 changes: 30 additions & 0 deletions .github/workflows/minecraft-test.yml
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit 3c682c2

Please sign in to comment.