Configure github-actions

This commit is contained in:
Aurélien Mino 2020-04-05 15:19:15 +02:00 committed by Aurélien Mino
parent 6542682dc7
commit 27d2d50fb4
2 changed files with 15 additions and 1 deletions

14
.github/workflows/linter.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: 'Code validation'
on: [push, pull_request]
jobs:
linter:
name: 'Linter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: 'Install dependencies'
run: npm install
- name: 'Run linter'
run: npm run lint

View file

@ -7,7 +7,7 @@
"lib": "lib" "lib": "lib"
}, },
"scripts": { "scripts": {
"prettier:format": "prettier --write \"{,**/}*.{js,json,md}\"", "prettier:format": "prettier --write \"{,**/}*.{js,json,md,yml}\"",
"lint": "npm run eslint", "lint": "npm run eslint",
"lint-fix": "npm run eslint -- --fix", "lint-fix": "npm run eslint -- --fix",
"eslint": "eslint ." "eslint": "eslint ."