mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-27 17:18:38 +02:00
add: workflow lint.yml on pr and push on master
This commit is contained in:
23
.github/workflows/lint.yml
vendored
Normal file
23
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
eslint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: npm ci # or yarn install
|
||||||
|
- uses: sibiraj-s/action-eslint@v3
|
||||||
|
with:
|
||||||
|
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||||
|
ignore-path: .eslintignore
|
||||||
|
extensions: 'js,jsx,ts,tsx'
|
||||||
|
annotations: true
|
||||||
Reference in New Issue
Block a user