From 9ea4559b02b4762035c705b5bb5520755754aacd Mon Sep 17 00:00:00 2001 From: catatsuy Date: Sun, 28 Feb 2021 13:18:30 +0900 Subject: [PATCH] add reviewdog for staticcheck --- .github/workflows/review.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/review.yml diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 0000000..eb0993e --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,18 @@ +name: reviewdog +on: [pull_request] +jobs: + staticcheck: + name: runner / staticcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: reviewdog/action-staticcheck@v1 + with: + github_token: ${{ secrets.github_token }} + staticcheck_flags: 'all,-ST1000' + # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. + reporter: github-pr-review + # Report all results. + filter_mode: nofilter + # Exit with 1 when it find at least one finding. + fail_on_error: true