diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 326f13e7..8c582b1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file