mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-09-20 05:51:56 +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"
|
||||
},
|
||||
"scripts": {
|
||||
"prettier:format": "prettier --write \"{,**/}*.{js,json,md}\"",
|
||||
"prettier:format": "prettier --write \"{,**/}*.{js,json,md,yml}\"",
|
||||
"lint": "npm run eslint",
|
||||
"lint-fix": "npm run eslint -- --fix",
|
||||
"eslint": "eslint ."
|
||||
|
|
Loading…
Reference in a new issue