-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.52 KB
/
_run-gametests.yml
File metadata and controls
64 lines (53 loc) · 1.52 KB
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
name: Run Game Tests
on:
workflow_call:
inputs:
version:
required: true
type: string
env:
VERSION: ${{ inputs.version }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
run-tests:
name: Run Game Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Pull Compilation Data
uses: actions/download-artifact@v4
with:
name: build
path: spatial/build
- name: Pull Compilation Data (Main)
uses: actions/download-artifact@v4
with:
name: build-neo
path: spatial-neoforge/build
# - name: Run Game Tests
# run: ./gradlew :spatial-neoforge:runGameTestServer
# - name: Upload test failure
# if: failure()
# uses: actions/upload-artifact@v4
# with:
# name: test-data
# path: run/gametest
- name: Run JUnit Tests
run: ./gradlew :spatial-neoforge:test
- name: Upload test reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: spatial-neoforge/build/reports