2022-08-21 07:41:39 -04:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-08-23 08:46:51 -04:00
|
|
|
- '1.19'
|
2022-08-21 07:41:39 -04:00
|
|
|
tags-ignore:
|
|
|
|
- '**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-08-23 08:46:51 -04:00
|
|
|
- '1.19'
|
2022-08-21 07:41:39 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
JAVA_DIST: 'zulu'
|
|
|
|
JAVA_VERSION: 17
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2022-08-23 09:38:58 -04:00
|
|
|
if: |
|
|
|
|
!contains(github.event.head_commit.message, '[skip build]')
|
2022-08-21 07:41:39 -04:00
|
|
|
steps:
|
|
|
|
- name: Clone Repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
|
|
cache: gradle
|
|
|
|
|
|
|
|
- name: Cleanup Gradle Cache
|
|
|
|
run: |
|
|
|
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|
2022-08-23 13:37:49 -04:00
|
|
|
|
2022-08-21 07:41:39 -04:00
|
|
|
- name: Make Gradle executable
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- name: Validate Gradle wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: ./gradlew build --stacktrace
|
2022-08-23 13:37:49 -04:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: ./gradlew test --stacktrace
|