Merge pull request #6 from BT-Pluginz/info-command #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestMC | |
on: | |
push: | |
branches: [ "master", "dev" ] | |
pull_request: | |
branches: [ "master", "dev" ] | |
jobs: | |
# ... | |
test-server: | |
runs-on: ubuntu-latest | |
timeout-minutes: 360 | |
# All Versions from 1.13.2 to 1.20.4 | |
strategy: | |
matrix: | |
version: [1.16.5, 1.15.2, 1.14.4, 1.13.2] | |
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: 'maven' | |
- name: Build Plugin | |
run: mvn -B package --file pom.xml | |
- name: List contents of target directory | |
run: ls target | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: CombatLogger | |
path: target/*CombatLogger-*.jar | |
- name: Download compiled JAR | |
uses: actions/download-artifact@v2 | |
with: | |
name: CombatLogger | |
- name: Test Plugin - ${{ matrix.version }} | |
uses: GamerCoder215/[email protected] | |
with: | |
path: 'target/CombatLogger-*.jar' | |
runtime: 'paper' | |
version: ${{ matrix.version }} |