From 89afcca66438413503ef53c351319672dadd65d9 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 13 Jan 2020 16:18:40 +0000 Subject: [PATCH 1/2] introduce reviewdog/action-vint@v1 https://github.com/reviewdog/action-vint --- .github/workflows/reviewdog.yml | 17 +++++++++++++++++ .travis.yml | 5 ----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/reviewdog.yml diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 00000000..f839628a --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,17 @@ +name: reviewdog +on: + push: + branches: + - master + pull_request: + +jobs: + vint: + name: runner / vint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: reviewdog/action-vint@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-check diff --git a/.travis.yml b/.travis.yml index 069418f4..bc5fe5f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,8 @@ rvm: - 2.0.0 install: - git clone https://github.com/kana/vim-vspec.git - - pip install vim-vint --user - - go env - - go get -u github.com/haya14busa/reviewdog/cmd/reviewdog before_script: - bundle install - bundle show script: - - >- - vint plugin autoload/EasyMotion.vim autoload/EasyMotion/ | reviewdog -name=vint -efm="%f:%l:%c: %m" -reporter=github-pr-check - rake ci From 87a3a5d07d3ac1220c31e3e8d800c6c26c0a67ad Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 13 Jan 2020 16:26:13 +0000 Subject: [PATCH 2/2] use github-pr-check for pull requests --- .github/workflows/reviewdog.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index f839628a..40fc292c 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -12,6 +12,14 @@ jobs: steps: - uses: actions/checkout@v2 - uses: reviewdog/action-vint@v1 + if: github.event_name == 'pull_request' + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-check + level: warning + - uses: reviewdog/action-vint@v1 + if: github.event_name != 'pull_request' with: github_token: ${{ secrets.github_token }} reporter: github-check + level: warning