Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Draft TestMC Build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Feb 3, 2024
1 parent b8b68e4 commit 2ccf96b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,43 @@ jobs:
run: ./gradlew :starcosmetics-api:clean :starcosmetics-api:javadoc
- name: Deploy JavaDoc
run: bash javadoc.sh ${GITHUB_SHA::7}

test-server:
runs-on: ubuntu-latest
timeout-minutes: 360
needs: test

strategy:
matrix:
version: [1.16.5, 1.15.2, 1.14.4, 1.13.2, 1.12.2, 1.11.2, 1.10.2, 1.9.4]
java-version: [8]
include:
- version: 1.17.1
java-version: 16
- version: 1.18.2
java-version: 17
- version: 1.19.4
java-version: 17
- version: 1.20.4
java-version: 17

name: Test Plugin on MC ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'gradle'
- name: Change Permissions
run: chmod +x ./gradlew
- name: Build Plugin
run: ./gradlew clean assemble
- name: Test Plugin - ${{ matrix.version }}
uses: GamerCoder215/testermc@v1
with:
path: 'plugin/build/libs/starcosmetics-*.jar'
runtime: 'paper'
version: ${{ matrix.version }}
time: 120

0 comments on commit 2ccf96b

Please sign in to comment.