generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 58
27 lines (26 loc) · 762 Bytes
/
build.yml
File metadata and controls
27 lines (26 loc) · 762 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
name: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: setup jdk 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build --stacktrace
- name: publish checkstyle report
uses: Juuxel/publish-checkstyle-report@v1
if: ${{ failure() }}
with:
reports: |
build/reports/checkstyle/*.xml