Skip to content

Update testing.yml

Update testing.yml #4

Workflow file for this run

name: TestMC
on:
push:
branches: [ "master", "Version*" ]
pull_request:
branches: [ "master", "Version*" ]
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 }}