mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-12 03:47:34 +00:00
30 lines
565 B
YAML
30 lines
565 B
YAML
name: Build PR
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master, main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Setup the workspace
|
|
run: ./gradlew setupCIWorkspace
|
|
|
|
- name: Build the mod
|
|
run: ./gradlew build
|