From d1e811d678b5b713ba0925f417a33b0bb57cd4c8 Mon Sep 17 00:00:00 2001 From: penekhun Date: Sat, 27 Jan 2024 21:16:02 +0900 Subject: [PATCH] chore: Change lint checker on actions --- .github/workflows/build-pull-request.yml | 7 +++++-- lint.gradle | 10 ---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 53455d9..f5ca49d 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -31,9 +31,12 @@ jobs: name: build-reports path: '**/build/reports/' - - name: Run check style + - name: Run checkstyle reporter uses: nikitasavinov/checkstyle-action@master with: github_token: ${{ secrets.TOKEN }} reporter: 'github-pr-check' - checkstyle_config: '/config/checkstyle/checkstyle.xml' \ No newline at end of file + checkstyle_config: 'config/checkstyle/checkstyle.xml' + + - name: Run checkstyle gradle + run: ./gradlew checkstyleMain checkstyleTest \ No newline at end of file diff --git a/lint.gradle b/lint.gradle index 23590e2..73ead23 100644 --- a/lint.gradle +++ b/lint.gradle @@ -5,14 +5,4 @@ subprojects { configDirectory = rootProject.file('config/checkstyle') configFile = rootProject.file('config/checkstyle/checkstyle.xml') } - - tasks.withType(Checkstyle).tap { - configureEach { - reports { - xml { - destination = file("$buildDir/reports/checkstyle/checkstyle-result.xml") - } - } - } - } } \ No newline at end of file