Skip to content

Commit

Permalink
changed runtime engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Shweit committed Aug 23, 2024
1 parent e805e9a commit 4aee5a5
Showing 1 changed file with 18 additions and 44 deletions.
62 changes: 18 additions & 44 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build with Maven and Do Runtime Test
name: Runtime Tests

on:
workflow_dispatch:
Expand All @@ -10,51 +10,25 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest

test:
strategy:
matrix:
runtime: [ 'paper', 'spigot', 'craftbukkit' ]
version: [ '1.17', '1.18', '1.19', '1.20', '1.21' ]
# ...
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up JDK 16
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21

- name: Maven Build
run: mvn clean package

- name: Upload the artifact
uses: actions/upload-artifact@v3
java-version: '21'
- name: Build with Maven
run: mvn clean install
- uses: gmitch215/TestMC@v2
with:
name: artifact-${{ github.event.number }}
path: 'target/MinecraftServerAPI*.jar'

runtime-test:
name: Plugin Runtime Test
needs: [build]
runs-on: ubuntu-latest
strategy:
matrix:
include:
- mcVersion: '1.16.5'
javaVersion: '16'
- mcVersion: '1.17.1'
javaVersion: '17'
- mcVersion: '1.18.2'
javaVersion: '18'
- mcVersion: '1.19.4'
javaVersion: '19'
- mcVersion: '1.20.1'
javaVersion: '20'
- mcVersion: '1.21'
javaVersion: '21'

steps:
- uses: FN-FAL113/[email protected]
with:
server-version: ${{ matrix.mcVersion }}
java-version: ${{ matrix.javaVersion }}
artifact-name: artifact-${{ github.event.number }}
runtime: ${{ matrix.runtime }}
version: ${{ matrix.version }}
time: 120
commands: |
version

0 comments on commit 4aee5a5

Please sign in to comment.