Skip to content

Commit

Permalink
Merge pull request #10 from FN-FAL113/main
Browse files Browse the repository at this point in the history
[pull] main from FN-FAL113:main
  • Loading branch information
pull[bot] committed Aug 3, 2023
2 parents 18212c4 + 88094d2 commit fa39e33
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 25 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build-with-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build with Maven and Do Runtime Test

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2.3.3

- name: Set up JDK 16
uses: actions/setup-java@v1.4.3
with:
java-version: 16

- name: Maven Build
run: mvn clean package --file pom.xml

- name: Upload the artifact
uses: actions/upload-artifact@v3
with:
name: artifact-${{ github.event.number }}
path: 'target/SfChunkInfo*.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'

steps:
- uses: FN-FAL113/minecraft-plugin-runtime-test@v1.1.2
with:
server-version: ${{ matrix.mcVersion }}
java-version: ${{ matrix.javaVersion }}
artifact-name: artifact-${{ github.event.number }}
25 changes: 0 additions & 25 deletions .github/workflows/maven.yml

This file was deleted.

0 comments on commit fa39e33

Please sign in to comment.