-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (66 loc) · 2.02 KB
/
TestRunner.yml
File metadata and controls
75 lines (66 loc) · 2.02 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
71
72
73
74
75
name: TestRunner
on:
workflow_dispatch:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
TestRunner:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: ${{ github.event_name == 'push' }}
uses: styfle/cancel-workflow-action@0.12.1
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: prefix-dev/setup-pixi@v0.8.10
with:
pixi-version: v0.48.2
cache: true
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'zulu'
- name: Cache assets
id: hit-cache
uses: actions/cache@v4
with:
path: |
./relauncher
./gml/.minecraft/assets
./download_cache
key: ${{ runner.os }}-crl-${{ github.sha }}
restore-keys: |
${{ runner.os }}-crl-
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: develop_build.yml
workflow_search: false
workflow_conclusion: success
ref: trunk
name: hdsu
name_is_regexp: true
path: hdsu_dev
repo: ProjectHDS/HerodotusUtils
check_artifacts: false
skip_unpack: false
if_no_artifact_found: fail
allow_forks: false
use_unzip: false
- name: Run game test
run: pixi run test-modpack '${{ secrets.CF_TOKEN }}' ./gml/.minecraft/mods ./gml/.minecraft/mods/.index
- name: Check crash reports
run: |
crash_dir="./gml/.minecraft/crash-reports"
first_report="$(find "$crash_dir" -type f -print -quit 2>/dev/null || true)"
if [ -n "$first_report" ]; then
echo "::error::Minecraft crash reports were generated during test run."
find "$crash_dir" -type f -print
exit 1
fi