-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (46 loc) · 1.35 KB
/
test.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
name: Run tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
subproject:
- 1.17.1-forge
- 1.17.1-fabric
- 1.18.2-forge
- 1.18.2-fabric
- 1.19.2-forge
- 1.19.2-fabric
- 1.19.4-forge
- 1.19.4-fabric
- 1.20.1-forge
- 1.20.1-fabric
- 1.20.4-neoforge
- 1.20.4-fabric
- 1.20.6-neoforge
- 1.20.6-fabric
side:
- Host
- Joiner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get cache key
id: cache_key
run: echo "gradle_key=gradle-`cat versions/mainProject`" >> $GITHUB_OUTPUT
- name: Cache Gradle stuff
uses: actions/cache@v3
with:
key: ${{ steps.cache_key.outputs.gradle_key }}-${{ hashFiles('*.gradle.kts', 'gradle.properties', 'gradle/**') }}
restore-keys: ${{ steps.cache_key.outputs.gradle_key }}-
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle/loom-cache
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Run tests
run: xvfb-run -a -s "-screen 0 1920x1080x24" ./gradlew :${{ matrix.subproject }}:runTest${{ matrix.side }}