generated from Shweit/mc-plugin-gradle-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (68 loc) · 1.83 KB
/
runtime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 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@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Gradle Build
run: gradle build
- name: Upload the artifact
uses: actions/upload-artifact@v3
with:
name: artifact-${{ github.event.number }}
path: 'build/libs/ItemLocator*.jar'
runtime-test:
name: Plugin Runtime Test
needs: [build]
runs-on: ubuntu-latest
strategy:
matrix:
include:
- mcVersion: '1.9.4'
javaVersion: '9'
- mcVersion: '1.10.2'
javaVersion: '10'
- mcVersion: '1.11.2'
javaVersion: '11'
- mcVersion: '1.12.2'
javaVersion: '12'
- mcVersion: '1.13.2'
javaVersion: '13'
- mcVersion: '1.14.4'
javaVersion: '14'
- mcVersion: '1.15.2'
javaVersion: '15'
- 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.20.6'
javaVersion: '20'
- mcVersion: '1.21'
javaVersion: '21'
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 }}