This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Use JDK 17 for workflows #8
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: Java CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Build: | |
strategy: | |
matrix: | |
jdkversion: [ 17 ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jdkversion }} | |
cache: 'maven' | |
- name: Build | |
run: mvn -V -B clean package --file pom.xml | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
name: Download | |
path: ./target/haproxy-detector-3.2.0.jar | |
runtime-test: | |
name: Plugin Runtime Test | |
needs: [Build] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- mcVersion: '1.8.8' | |
javaVersion: '8' | |
- mcVersion: '1.12.2' | |
javaVersion: '8' | |
- mcVersion: '1.20.2' | |
javaVersion: '20' | |
steps: | |
- uses: HaHaWTH/minecraft-plugin-runtime-test@paper | |
with: | |
server-version: ${{ matrix.mcVersion }} | |
java-version: ${{ matrix.javaVersion }} | |
artifact-name: Download |