mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 12:15:06 +01:00
36 lines
662 B
YAML
36 lines
662 B
YAML
|
name: Linting
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
- next
|
||
|
pull_request:
|
||
|
types: [opened, reopened]
|
||
|
|
||
|
permissions: read-all
|
||
|
|
||
|
jobs:
|
||
|
linting:
|
||
|
name: Run linters
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Check out Git repository
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Set up Node.js
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: 16
|
||
|
|
||
|
- name: Install Node.js dependencies
|
||
|
run: npm ci
|
||
|
|
||
|
- name: Run linters
|
||
|
uses: wearerequired/lint-action@v2
|
||
|
with:
|
||
|
eslint: true
|
||
|
eslint_dir: src
|
||
|
eslint_extensions: tsx,ts
|
||
|
eslint_auto_fix: false
|