6
6
test :
7
7
runs-on : ubuntu-latest
8
8
timeout-minutes : 8
9
- continue-on-error : ${{ matrix.version == '1.19.4 ' }}
9
+ continue-on-error : ${{ matrix.version == '1.20.1 ' }}
10
10
strategy :
11
11
fail-fast : false
12
12
matrix :
13
13
flavor : ['bukkit', 'spigot', 'paper', 'purpur']
14
- version : ['1.19.4', '1.18.2', '1.17.1', '1.16.5']
14
+ version : ['1.20.1', '1. 19.4', '1.18.2', '1.17.1', '1.16.5']
15
15
steps :
16
16
# Download code from repository
17
17
- name : Checkout code
39
39
- name : Setup Node.js
40
40
uses : actions/setup-node@v3
41
41
with :
42
- node-version : ' 17 '
42
+ node-version : ' 19 '
43
43
44
44
# Setup automata
45
45
- name : Setup automata
@@ -67,24 +67,18 @@ jobs:
67
67
wget -nv "$url" -O server.jar
68
68
java -jar server.jar || true
69
69
sed -i 's/eula=false/eula=true/g' eula.txt
70
- echo " online-mode=false" >> server.properties
71
- echo " enable-rcon=true" >> server.properties
72
- echo " rcon.password=rcon" >> server.properties
73
- echo " allow-nether=false" >> server.properties
74
- echo " allow-end=false" >> server.properties
70
+ echo ' online-mode=false' >> server.properties
71
+ echo ' enable-rcon=true' >> server.properties
72
+ echo ' rcon.password=rcon' >> server.properties
73
+ echo ' allow-nether=false' >> server.properties
74
+ echo ' allow-end=false' >> server.properties
75
75
echo 'generate-structures=false' >> server.properties
76
- echo " level-type=flat" >> server.properties
76
+ echo ' level-type=flat' >> server.properties
77
77
78
78
# Install dependencies
79
79
- name : Install plugin dependencies
80
- env :
81
- VERSION : ${{ matrix.version }}
82
80
run : |
83
- if [ $VERSION == "1.19.4" ]; then
84
- url="https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/build/libs/ProtocolLib.jar"
85
- else
86
- url="https://github.com/dmulloy2/ProtocolLib/releases/download/4.8.0/ProtocolLib.jar"
87
- fi
81
+ url="https://github.com/dmulloy2/ProtocolLib/releases/download/5.0.0/ProtocolLib.jar"
88
82
mkdir -p ./server/plugins/ProtocolLib
89
83
wget -q "$url" -O ./server/plugins/ProtocolLib.jar
90
84
echo -e "global:\n auto updater:\n notify: false\n download: false" > ./server/plugins/ProtocolLib/config.yml
@@ -102,10 +96,12 @@ jobs:
102
96
# Test plugin
103
97
- name : Run plugin in server
104
98
working-directory : ./server
99
+ env :
100
+ FLAVOR : ${{ matrix.flavor }}
105
101
run : |
106
102
(cd ../automata && npm run start) &
107
103
timeout -s SIGINT -k 110s 90s java -DIReallyKnowWhatIAmDoingISwear -jar server.jar nogui | tee server.log || true
108
- if ! grep -Fq '[YamipaPlugin] Loading YamipaPlugin ' server.log; then
104
+ if ! grep -Fq '[YamipaPlugin] ' server.log; then
109
105
echo "Plugin did not load"
110
106
exit 1
111
107
fi
@@ -129,7 +125,7 @@ jobs:
129
125
echo "Plugin did not remove the fake image"
130
126
exit 1
131
127
fi
132
- if grep -iFq 'exception' server.log; then
128
+ if [ "$FLAVOR" != "bukkit" ] && grep -iFq 'exception' server.log; then
133
129
echo "Server threw an exception"
134
130
exit 1
135
131
fi
0 commit comments