change coverage commands

This commit is contained in:
Ulf Gebhardt 2023-11-20 16:22:57 +01:00
parent a3b2539b4f
commit cbaf700a7a
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 11 additions and 20 deletions

View File

@ -9,7 +9,7 @@ jobs:
name: Detect File Changes - frontend-test-lint-code
runs-on: ubuntu-latest
outputs:
frontend-test-lint-code: ${{ steps.changes.outputs.frontend-test-lint-code }}
changes: ${{ steps.changes.outputs.frontend-test-lint-code }}
steps:
- uses: actions/checkout@v3.3.0
@ -22,7 +22,7 @@ jobs:
list-files: shell
lint:
if: needs.files-changed.outputs.frontend-test-lint-code == 'true'
if: needs.files-changed.outputs.changes == 'true'
name: Lint - Frontend
needs: files-changed
runs-on: ubuntu-latest

View File

@ -9,7 +9,7 @@ jobs:
name: Detect File Changes - frontend-test-unit-code
runs-on: ubuntu-latest
outputs:
frontend-test-unit-code: ${{ steps.changes.outputs.frontend-test-unit-code }}
changes: ${{ steps.changes.outputs.frontend-test-unit-code }}
steps:
- uses: actions/checkout@v3.3.0
@ -22,7 +22,7 @@ jobs:
list-files: shell
unit:
if: needs.files-changed.outputs.frontend-test-unit-code == 'true'
if: needs.files-changed.outputs.changes == 'true'
name: Unit - Frontend
needs: files-changed
runs-on: ubuntu-latest

View File

@ -41,8 +41,8 @@ The following commands are available:
| `npm run test:lint` | Run all linters |
| `npm run test:lint:eslint` | Run linter eslint |
| `npm run test:lint:remark` | Run linter remark |
| `npm run test:unit` | Run all unit tests in watch mode |
| `npm run test:unit:coverage` | Run all unit tests and generate coverage report |
| `npm run test:unit` | Run all unit tests and generate coverage report |
| `npm run test:unit:dev` | Run all unit tests in watch mode |
| `npm test` | Run all tests & linters |
| **Storybook** | |
| `npm run storybook` | Run Storybook |
@ -76,20 +76,11 @@ The following endpoints are provided given the right command is executed or all
## TODO
- [x] vite
- [x] vike
- [x] vue3
- [x] vuetify
- [x] pinia store
- [x] storybook
- [x] eslint
- [x] vitest
- [x] vue-i18n
- [x] docker
- [x] vuepress
- [ ] figma
- [ ] chromatic
- [ ] github actions
- [ ] lint locales
- [ ] zähler -> pinia
## Known Problems

View File

@ -43,9 +43,9 @@
"test:lint": "npm run test:lint:eslint && npm run test:lint:remark",
"test:lint:eslint": "eslint --ext .vue,.ts,.tsx,.js,.jsx,.json,.yml,.yaml --max-warnings 0 --ignore-path .gitignore .",
"test:lint:remark": "remark . --quiet --frail",
"test:unit": "vitest",
"test:unit:coverage": "npm run test:unit -- run --coverage",
"test": "npm run test:lint && npm run test:unit:coverage",
"test:unit": "npm run test:unit -- run --coverage",
"test:unit:dev": "vitest",
"test": "npm run test:lint && npm run test:unit",
"docs:dev": "vuepress dev .",
"docs:build": "vuepress build ."
},