Skip to content

Commit 4b8d747

Browse files
kevinthegreat1lineargraph
authored andcommitted
Add CI
1 parent b89d326 commit 4b8d747

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Automatically build the project and run any configured tests for every push
2+
# and submitted pull request. This can help catch issues that only occur on
3+
# certain platforms or Java versions, and provides a first line of defence
4+
# against bad commits.
5+
6+
name: build
7+
on: [ pull_request, push ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: Checkout NEU Repo
16+
uses: actions/checkout@v4
17+
with:
18+
repository: 'NotEnoughUpdates/NotEnoughUpdates-REPO'
19+
path: 'NotEnoughUpdates-REPO' # This is consistent with the repo path defined in NEURepoParserTest.java
20+
21+
- name: Validate gradle wrapper
22+
uses: gradle/actions/wrapper-validation@v3
23+
- name: Setup JDK 21
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: 21
27+
distribution: 'microsoft'
28+
- name: Make gradle wrapper executable
29+
run: chmod +x ./gradlew
30+
31+
- name: Build
32+
run: ./gradlew build
33+
34+
- name: Store test reports
35+
if: failure()
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: reports
39+
path: |
40+
**/build/reports/
41+
**/build/test-results/
42+
- name: Capture build artifacts
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: Artifacts
46+
path: build/libs/

0 commit comments

Comments
 (0)