Skip to content

Commit 81c3d45

Browse files
committed
change: split license check, build and gametest in CI
1 parent 44b1d81 commit 81c3d45

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.github/workflows/build.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,20 @@ jobs:
2222
java-version: 17
2323
distribution: temurin
2424

25+
- name: License headers
26+
id: license_headers
27+
uses: gradle/gradle-build-action@v2
28+
with:
29+
arguments: checkLicenses
30+
2531
- name: Build
2632
id: build
2733
uses: gradle/gradle-build-action@v2
2834
with:
29-
arguments: checkLicenses build runGametest
35+
arguments: build
36+
37+
- name: Gametest
38+
id: gametest
39+
uses: gradle/gradle-build-action@v2
40+
with:
41+
arguments: runGametest

.github/workflows/pr_check.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,20 @@ jobs:
2121
java-version: 17
2222
distribution: temurin
2323

24+
- name: License headers
25+
id: license_headers
26+
uses: gradle/gradle-build-action@v2
27+
with:
28+
arguments: checkLicenses
29+
2430
- name: Build
31+
id: build
32+
uses: gradle/gradle-build-action@v2
33+
with:
34+
arguments: build
35+
36+
- name: Gametest
37+
id: gametest
2538
uses: gradle/gradle-build-action@v2
2639
with:
27-
arguments: checkLicenses build runGametest
40+
arguments: runGametest

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ modules.xml
212212

213213
### Gradle ###
214214
.gradle
215-
**/build/
216-
!src/**/build/
215+
build/
217216

218217
# Ignore Gradle GUI config
219218
gradle-app.setting
@@ -234,4 +233,4 @@ gradle-app.setting
234233

235234
# FabricMC
236235
run/
237-
remappedSrc/
236+
remappedSrc/

0 commit comments

Comments
 (0)