From f8aff4754c5140b61a76703cb3f89bcb8e6b5c82 Mon Sep 17 00:00:00 2001 From: Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> Date: Mon, 29 May 2023 00:21:13 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20scalafix=E3=81=8Cpush=E3=81=A7?= =?UTF-8?q?=E8=90=BD=E3=81=A1=E3=82=8B=E6=80=AA=E7=8F=BE=E8=B1=A1=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_deploy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 12465687dd..de51297062 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -107,13 +107,10 @@ jobs: reviewdog-name: scalafmt github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Check lint with Scalafix on push - if: ${{ (github.event_name == 'push')}} + - name: Run scalafix check + # cf. https://scalacenter.github.io/scalafix/docs/users/installation.html#enforce-in-ci run: sbt "scalafix --check" - - name: Run lint with Scalafix on PR - if: ${{ (github.event_name == 'pull_request')}} - run: sbt scalafixAll - - name: Run reviewdog for Scalafix + - name: Annotate scalafix diagnostics with reviewdog uses: ./.github/actions/run-reviewdog if: ${{ (github.event_name == 'pull_request') && failure() }} with: