From 97c79a541f159872ad1909c26bb9f28fc8310e16 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 8 Jun 2020 14:01:59 +0300 Subject: [PATCH] Split push vs. pull_request lint tooling (#426) --- .github/workflows/reviewdog.yml | 16 ++++++++++++++++ .github/workflows/vint.yml | 17 ++++++++--------- README.md | 4 +++- 3 files changed, 27 insertions(+), 10 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 0000000..db1dbfa --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,16 @@ +name: Reviewdog +on: [pull_request] +jobs: + vint: + strategy: + fail-fast: false + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Lint Vimscript in PR changes + uses: reviewdog/action-vint@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: info diff --git a/.github/workflows/vint.yml b/.github/workflows/vint.yml index d686760..2cfaeb4 100644 --- a/.github/workflows/vint.yml +++ b/.github/workflows/vint.yml @@ -1,5 +1,5 @@ name: Vint -on: [push, pull_request] +on: [push] jobs: vint: strategy: @@ -7,11 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@master - - name: Run vint with reviewdog - uses: reviewdog/action-vint@v1.0.1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-pr-review - - + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + - name: Setup dependencies + run: pip install vim-vint + - name: Lint Vimscript + run: vint . diff --git a/README.md b/README.md index dec0bb7..9076ac5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# NERD Commenter [![Vint](https://github.com/preservim/nerdcommenter/workflows/Vint/badge.svg)](https://github.com/preservim/nerdcommenter/actions?workflow=Vint) +# NERD Commenter + +[![Vint](https://github.com/preservim/nerdcommenter/workflows/Vint/badge.svg)](https://github.com/preservim/nerdcommenter/actions?workflow=Vint) Comment functions so powerful—no comment necessary.