-
Notifications
You must be signed in to change notification settings - Fork 80
70 lines (58 loc) · 1.71 KB
/
_run-gametests.yml
File metadata and controls
70 lines (58 loc) · 1.71 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
65
66
67
68
69
70
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@v6
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@v5
- name: Pull Built Generated Data
uses: actions/download-artifact@v8
with:
name: generated-data
path: neoforge-main/src/generated/resources
- name: Pull Compilation Data (Core)
uses: actions/download-artifact@v8
with:
name: build-core
path: core-api/build
- name: Pull Compilation Data (Main)
uses: actions/download-artifact@v8
with:
name: build-main
path: neoforge-main/build
- name: Run Game Tests
run: ./gradlew :neoforge-main:runGameTestServer
- name: Upload test failure
if: failure()
uses: actions/upload-artifact@v5
with:
name: test-data
path: run/gametest
- name: Run JUnit Tests
run: ./gradlew :neoforge-main:test
- name: Upload test reports on failure
if: failure()
uses: actions/upload-artifact@v5
with:
name: test-reports
path: neoforge-main/build/reports