Skip to content

Commit ad5b91f

Browse files
committed
Add PR tester, stop CI builds on .github changes
1 parent c02d8b4 commit ad5b91f

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/ci-tests-nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
tags-ignore:
99
- v*
1010
paths-ignore:
11-
- 'README.md'
12-
- LICENSE
11+
- "README.md"
12+
- "LICENSE"
13+
- ".github"
1314

1415
jobs:
1516
vars:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Gradle Tests and Nightly (CI)
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- src
7+
8+
jobs:
9+
tests:
10+
name: Gradle Tests
11+
runs-on: ubuntu-20.04
12+
needs: [ vars ]
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
17+
- name: Set up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: "adopt"
21+
java-version: "17"
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Create datagen assets
27+
continue-on-error: true
28+
run: ./gradlew runData
29+
30+
- name: Test JAR with GameTest Server
31+
run: ./gradlew runGameTestServer
32+
env:
33+
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Upload build failure
37+
if: failure()
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: test-data
41+
path: run/gametest

0 commit comments

Comments
 (0)