mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add ESLint PR check action
This commit is contained in:
22
.github/workflows/pr-run-eslint.yml
vendored
Normal file
22
.github/workflows/pr-run-eslint.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: ✅ Check ESLint on PR
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
- uses: sibiraj-s/action-eslint@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||
extensions: 'js,ts'
|
||||
annotations: true
|
||||
ignore-patterns: |
|
||||
dist/
|
||||
lib/
|
Reference in New Issue
Block a user