Skip to content

Commit

Permalink
fix(ci): scalafixがpushで落ちる怪現象を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective authored May 28, 2023
1 parent c62fa7b commit f8aff47
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f8aff47

Please sign in to comment.