-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.56 KB
/
datapack.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
name: datapack
on: [push]
env:
FABRIC_API: https://cdn.modrinth.com/data/P7dR8mSH/versions/JMCwDuki/fabric-api-0.92.0%2B1.20.4.jar
FABRIC_SERVER: https://meta.fabricmc.net/v2/versions/loader/1.20.4/0.15.3/0.11.2/server/jar
PACKTEST: https://cdn.modrinth.com/data/XsKUhp45/versions/Gq3rUEy6/packtest-1.3-mc1.20.4.jar
ASSETS_DIR: null
BLOCKBENCH_PATH: null
DATAPACK_MCMETA: null
MINECRAFT_PATH: null
RESOURCEPACK_MCMETA: null
WORLD_NAME: omega-flowey-remastered
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version-file: package.json
- run: yarn
- name: Run lint scripts on datapacks
run: yarn start lint.custom.datapacks
env:
FORCE_COLOR: 2
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Download server files
run: |
curl -o server.jar $FABRIC_SERVER
mkdir mods
curl -o mods/fabric-api.jar $FABRIC_API
curl -o mods/packtest.jar $PACKTEST
- name: Copy packs to world
run: |
mkdir -p world
cp -r datapacks world
- name: Run test server
run: |
java -Xmx2G -Dpacktest.auto -jar server.jar nogui