mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 21:28:29 +03:00
23 lines
No EOL
560 B
YAML
23 lines
No EOL
560 B
YAML
name: linter
|
|
|
|
# This action works with pull requests and pushes
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 9.8.0
|
|
- name: Install
|
|
run: npm install
|
|
- name: Run ESLint on changed files
|
|
uses: tj-actions/eslint-changed-files@v4
|
|
with:
|
|
config-path: '.eslintrc.js'
|
|
ignore-path: '.eslintignore'
|
|
extensions: 'ts,tsx,js,jsx'
|
|
extra-args: '--max-warnings=0' |