-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
49 lines (44 loc) · 1.27 KB
/
action.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
name: 'Minecraft Plugin Runtime Test'
description: 'A github action for testing minecraft plugins on combination of paper server versions'
branding:
icon: 'terminal'
color: 'green'
inputs:
server-version:
required: true
default: '1.20.1'
artifact-name:
required: true
default: ''
java-version:
required: true
default: '17'
runs:
using: 'composite'
steps:
- name: Checking out Action Repository
uses: actions/checkout@v3.5.3
with:
repository: FN-FAL113/minecraft-plugin-runtime-test
ref: main
- name: Download Plugin Build Artifact
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact-name }}
path: server/plugins/
- name: Setting up Java ${{ inputs.java-version }}
uses: actions/setup-java@v3.11.0
with:
distribution: 'adopt'
java-version: ${{ inputs.java-version }}
java-package: jdk
architecture: x64
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Running Test on Paper-${{ inputs.server-version }}
shell: bash
env:
SERVER_VERSION: ${{ inputs.server-version }}
run: npm start