File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments