From ca33906bc09e1b3f8a8b0ab4dddc8206415314bc Mon Sep 17 00:00:00 2001 From: SIR Date: Sun, 31 Mar 2024 16:46:42 +0900 Subject: [PATCH] Setup check quality Github workflow --- .github/workflows/check-build.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml index 6669b8d..ba99ba0 100644 --- a/.github/workflows/check-build.yml +++ b/.github/workflows/check-build.yml @@ -1,8 +1,29 @@ name: Code quality check run-name: Check code quality with linter -on: [push] +on: [ push ] jobs: - Explore-GitHub-Actions: + Detekt: runs-on: ubuntu-latest steps: - - run: ./gradlew detekt + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set Up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '11' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + cache-disabled: true + + - name: Detekt + shell: bash + run: ./gradlew detekt + +# - name: Publish Detekt reports +# uses: jwgmeligmeyling/checkstyle-github-action@master +# with: +# path: '**/checkstyle-result.xml'