From 9c736848fb7aa82d295b3aa2946e6cd132ee998f Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 14 Sep 2022 13:12:55 +0100 Subject: Add checkstyle (#460) --- .github/workflows/build.yml | 9 +++++++-- .github/workflows/release.yml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93a2e1fa..0abdf58e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ name: Build -on: [push, pull_request] +on: [ push, pull_request ] jobs: build: strategy: matrix: - java: [17-jdk] + java: [ 17-jdk ] runs-on: ubuntu-20.04 container: image: openjdk:${{ matrix.java }} @@ -13,3 +13,8 @@ jobs: - uses: actions/checkout@v1 - uses: gradle/wrapper-validation-action@v1 - run: ./gradlew build --stacktrace --warning-mode fail + - uses: Juuxel/publish-checkstyle-report@v1 + if: ${{ failure() }} + with: + reports: | + **/build/reports/checkstyle/*.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48aacde3..9a4dc97d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ name: Release -on: [workflow_dispatch] # Manual trigger +on: [ workflow_dispatch ] # Manual trigger jobs: build: runs-on: ubuntu-20.04 -- cgit v1.2.3