-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 978 Bytes
/
test-plugin.yml
File metadata and controls
38 lines (34 loc) · 978 Bytes
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
name: Test with Paper plugin
on:
workflow_dispatch:
workflow_call:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ./test
- name: Build
run: ./gradlew build
working-directory: ./test
- name: Create plugins dir
run: mkdir -p run/plugins
- name: Copy plugin jar
run: cp ./test/build/libs/*.jar run/plugins/plugin.jar
- name: Run server
timeout-minutes: 3
uses: ./
with:
mc: 1.21.5
modloader: paper
java: 21
test-file: ./test.json