mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
add lint + prettier check before test
This commit is contained in:
parent
f437d976f8
commit
67ad82d52e
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@ -10,10 +10,11 @@ jobs:
|
||||
node-version: [18]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "npm"
|
||||
- run: npm install
|
||||
- run: npm run check
|
||||
- run: npm test
|
||||
|
||||
@ -18,8 +18,10 @@
|
||||
"deploy": "NODE_DEBUG=gh-pages gh-pages -d out",
|
||||
"jsdoc": "jsdoc packages/ -c jsdoc.config.json",
|
||||
"jsdoc-json": "jsdoc packages/ --template ./node_modules/jsdoc-json --destination doc.json -c jsdoc.config.json",
|
||||
"lint": "npx eslint . --ext mjs,js --quiet",
|
||||
"codeformat": "prettier --write ."
|
||||
"lint": "eslint . --ext mjs,js --quiet",
|
||||
"codeformat": "prettier --write .",
|
||||
"format-check": "prettier --check .",
|
||||
"check": "npm run format-check && npm run lint"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user