-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (63 loc) · 2.25 KB
/
run-gametests.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
---
name: Run gametests
"on":
workflow_dispatch: # TODO: add relevant inputs
jobs: # TODO: add cleanup job
build:
name: Build
strategy:
matrix:
include:
- { dir: gametest, mc: 1.20.4, lex: 49.0.38, neo: 219, java: 17 }
- { dir: 1_20, mc: 1.20.4, lex: 49.0.38, neo: 219, java: 17 }
uses: ./.github/workflows/flex-build.yml
with:
dir: ${{ matrix.dir }}
mc: ${{ matrix.mc }}
lex: ${{ matrix.lex }}
neo: ${{ matrix.neo }}
java: ${{ matrix.java }}
merge: # TODO: simplify away this job
name: Merge
needs: [build]
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
delete-merged: true
run:
name: Run tests
needs: [merge]
strategy:
matrix:
include:
- { mc: 1.20.4, type: lexforge, modloader: forge, regex: .*forge.*, java: 17 }
- { mc: 1.20.4, type: neoforge, modloader: neoforge, regex: .*neoforge.*, java: 17 }
- { mc: 1.20.4, type: fabric, modloader: fabric, regex: .*fabric.*, java: 17 }
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
- name: Stage artifacts
run: |
mkdir -p run/mods
cp merged-artifacts/clientgametest-${{ matrix.mc }}-*-${{ matrix.type }}.jar run/mods
cp merged-artifacts/mc-runtime-test-${{ matrix.mc }}-*-${{ matrix.type }}-release.jar run/mods
- name: Setup temurin-${{ matrix.java }}
uses: useblacksmith/setup-java@ffdcc086410416d16bc6eebdf2412fa3b37823d9 # v5
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Run game
timeout-minutes: 3
uses: ./
with:
mc: ${{ matrix.mc }}
modloader: ${{ matrix.modloader }}
regex: ${{ matrix.regex }}
java: ${{ matrix.java }}
mc-runtime-test: none
headlessmc-command: --jvm "-Djava.awt.headless=true -DMcRuntimeGameTestMinExpectedGameTests=1"
fabric-api: 0.97.0
fabric-gametest-api: 1.3.5+85d85a934f