mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-23 19:48:44 +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
|
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 [![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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user