Skip to content

Commit

Permalink
Merge pull request #2066 from GiganticMinecraft/KisaragiEffective-pat…
Browse files Browse the repository at this point in the history
…ch-3

fix(ci): scalafixがpushで落ちる怪現象を修正
  • Loading branch information
kory33 authored Jul 2, 2023
2 parents fe9cf4f + 9e32bef commit a980dc5
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 a980dc5

Please sign in to comment.