run prettier + lint separately (improves output)

This commit is contained in:
Felix Roos 2022-12-13 21:53:45 +01:00
parent bf1ba6efc0
commit 5d3c522da2
2 changed files with 4 additions and 3 deletions

View File

@ -16,5 +16,6 @@ jobs:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: "npm" cache: "npm"
- run: npm install - run: npm install
- run: npm run check - run: npm run format-check
- run: npm run lint
- run: npm test - run: npm test

View File

@ -5,7 +5,7 @@
"description": "Port of tidalcycles to javascript", "description": "Port of tidalcycles to javascript",
"scripts": { "scripts": {
"pretest": "cd tutorial && npm run jsdoc-json", "pretest": "cd tutorial && npm run jsdoc-json",
"test": "npm run lint && vitest run --version", "test": "vitest run --version",
"test-ui": "vitest --ui", "test-ui": "vitest --ui",
"test-coverage": "vitest --coverage", "test-coverage": "vitest --coverage",
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
@ -21,7 +21,7 @@
"lint": "eslint . --ext mjs,js --quiet", "lint": "eslint . --ext mjs,js --quiet",
"codeformat": "prettier --write .", "codeformat": "prettier --write .",
"format-check": "prettier --check .", "format-check": "prettier --check .",
"check": "npm run format-check && npm run lint" "check": "npm run format-check && npm run lint && npm run test"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"