mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-23 15:45:26 +08:00
Split push vs. pull_request lint tooling (#426)
This commit is contained in:
parent
c62e618a1a
commit
97c79a541f
16
.github/workflows/reviewdog.yml
vendored
Normal file
16
.github/workflows/reviewdog.yml
vendored
Normal 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
|
17
.github/workflows/vint.yml
vendored
17
.github/workflows/vint.yml
vendored
|
@ -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 .
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user