Skip to content

chore(release): v23.8.1 #32

chore(release): v23.8.1

chore(release): v23.8.1 #32

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
- devel
jobs:
validation:
name: "Gradle Wrapper Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
build:
needs: validation
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Print Java Version
run: java --version
- name: Cache Gradle Packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('versions.gradle', '**/gradle.properties', '**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}
- name: Lint Gradle File
run: ./gradlew autoLintGradle
- name: Build project
run: ./gradlew build -x test
- name: Unit Test
run: ./gradlew test
- name: Integration Test
run: ./gradlew integrationTest
- name: Publish Candidate
if: |
startsWith(github.ref, 'refs/tags/v') &&
contains(github.ref, '-rc.')
run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate
- name: Upload Artifacts
uses: actions/upload-artifact@v3
if: |
startsWith(github.ref, 'refs/tags/v')
with:
name: Package
path: ./**/build/libs/*.jar
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties