Skip to content

Update Gradle, Spotless, Workflow actions #797

Update Gradle, Spotless, Workflow actions

Update Gradle, Spotless, Workflow actions #797

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [ 17-ubuntu, 21-ubuntu ]
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/openjdk/jdk:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew check build publishToMavenLocal --stacktrace -Porg.gradle.parallel.threads=4 # --warning-mode=fail
- uses: Juuxel/publish-checkstyle-report@v1
if: ${{ failure() }}
with:
reports: |
**/build/reports/checkstyle/*.xml
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: ./**/build/libs/
- uses: actions/upload-artifact@v3
with:
name: Maven Local
path: /root/.m2/repository