mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
ci: add linter for every PR & commit (#6988)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
name: Linter
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14'
|
||||
- run: yarn install
|
||||
- name: Lint
|
||||
run: |
|
||||
npm run lint
|
||||
env:
|
||||
CI: true
|
||||
Reference in New Issue
Block a user