-
Notifications
You must be signed in to change notification settings - Fork 193
47 lines (37 loc) · 1.43 KB
/
gradle.yml
File metadata and controls
47 lines (37 loc) · 1.43 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
name: Build CI
on: [ push ]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup JDK 25
uses: actions/setup-java@v5
with:
distribution: adopt
java-version: 25
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v7
with:
name: build-artifacts
path: build/libs
- name: Run Tests
run: |
for server in fabric neoforge; do
for experimental in true false; do
echo "Running tests for server: $server, experimental: $experimental"
mkdir -p "$server/run/gametestServer/config"
echo "" > "$server/run/gametestServer/config/lithium.properties"
if [ "$experimental" = "true" ]; then
echo "mixin.experimental=true" > "$server"/run/gametestServer/config/lithium.properties
fi
./gradlew "$server:runGameTest"
done
done