mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Split push vs. pull_request lint tooling (#426)
This commit is contained in:
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
|
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 .
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
# NERD Commenter [](https://github.com/preservim/nerdcommenter/actions?workflow=Vint)
|
# NERD Commenter
|
||||||
|
|
||||||
|
[](https://github.com/preservim/nerdcommenter/actions?workflow=Vint)
|
||||||
|
|
||||||
Comment functions so powerful—no comment necessary.
|
Comment functions so powerful—no comment necessary.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user