2023-01-15 14:10:41 +01:00
|
|
|
name: Build PR
|
2023-03-06 11:38:30 +01:00
|
|
|
on: [ pull_request ]
|
2023-01-15 14:10:41 +01:00
|
|
|
jobs:
|
|
|
|
build_pr:
|
|
|
|
if: github.repository_owner == 'IntellectualSites'
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-03-06 11:38:30 +01:00
|
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
2023-12-02 10:51:34 +01:00
|
|
|
jdk: [ 17, 21 ]
|
2023-01-15 14:10:41 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2023-10-01 13:59:43 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-01-15 14:10:41 +01:00
|
|
|
- name: Validate Gradle Wrapper
|
2023-05-01 10:15:20 +02:00
|
|
|
uses: gradle/wrapper-validation-action@v1
|
2023-12-02 10:51:34 +01:00
|
|
|
- name: Setup Java ${{ matrix.jdk }}
|
2023-12-01 23:46:38 +01:00
|
|
|
uses: actions/setup-java@v4
|
2023-01-15 14:10:41 +01:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
2023-12-02 10:51:34 +01:00
|
|
|
java-version: ${{ matrix.jdk }}
|
2023-01-15 14:10:41 +01:00
|
|
|
- name: Clean Build
|
|
|
|
run: ./gradlew clean build
|