mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Configure github-actions
This commit is contained in:
parent
6542682dc7
commit
27d2d50fb4
2 changed files with 15 additions and 1 deletions
14
.github/workflows/linter.yml
vendored
Normal file
14
.github/workflows/linter.yml
vendored
Normal 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
|
|
@ -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 ."
|
||||||
|
|
Loading…
Reference in a new issue