-
-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (29 loc) · 726 Bytes
/
build.yml
File metadata and controls
35 lines (29 loc) · 726 Bytes
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
name: Build and Test
on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: neoforged/actions/checkout@main
- name: Setup JDK 21
uses: neoforged/actions/setup-java@main
with:
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
- name: Test
run: ./gradlew :check
- name: Publish PR artifacts
if: ${{ github.event_name == 'pull_request' }}
uses: neoforged/action-pr-publishing/upload@v1