mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 01:43: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
|
||||
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 [](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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user