Split push vs. pull_request lint tooling (#426)

This commit is contained in:
Caleb Maclennan 2020-06-08 14:01:59 +03:00 committed by GitHub
parent c62e618a1a
commit 97c79a541f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 10 deletions

16
.github/workflows/reviewdog.yml vendored Normal file
View File

@ -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

View File

@ -1,5 +1,5 @@
name: Vint name: Vint
on: [push, pull_request] on: [push]
jobs: jobs:
vint: vint:
strategy: strategy:
@ -7,11 +7,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@v2
- name: Run vint with reviewdog - name: Set up Python
uses: reviewdog/action-vint@v1.0.1 uses: actions/setup-python@v2
with: - name: Setup dependencies
github_token: ${{ secrets.github_token }} run: pip install vim-vint
reporter: github-pr-review - name: Lint Vimscript
run: vint .

View File

@ -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. Comment functions so powerful—no comment necessary.