-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 977 Bytes
/
build.yml
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
name: build
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
workflow_dispatch:
permissions: write-all
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
cache: gradle
- uses: gradle/actions/setup-gradle@v3
- name: Run Build
run: ./gradlew clean build -x test
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: "Built Mod"
path: build/libs/*.jar
- name: Run Tests
run: ./gradlew test
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: "Test Results"
path: build/reports/tests/test