mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
new PR tasks
This commit is contained in:
parent
88f9ff90d4
commit
fde4829503
2 changed files with 20 additions and 0 deletions
19
Taskfile.yml
19
Taskfile.yml
|
@ -108,6 +108,16 @@ tasks:
|
||||||
cmds:
|
cmds:
|
||||||
- cd frontend && pnpm dev
|
- cd frontend && pnpm dev
|
||||||
|
|
||||||
|
ui:fix:
|
||||||
|
desc: Runs prettier and eslint on the frontend
|
||||||
|
cmds:
|
||||||
|
- cd frontend && pnpm run lint:fix
|
||||||
|
|
||||||
|
ui:check:
|
||||||
|
desc: Runs type checking
|
||||||
|
cmds:
|
||||||
|
- cd frontend && pnpm run typecheck
|
||||||
|
|
||||||
test:ci:
|
test:ci:
|
||||||
desc: Runs end-to-end test on a live server (only for use in CI)
|
desc: Runs end-to-end test on a live server (only for use in CI)
|
||||||
cmds:
|
cmds:
|
||||||
|
@ -116,3 +126,12 @@ tasks:
|
||||||
- sleep 5
|
- sleep 5
|
||||||
- cd frontend && pnpm run test:ci
|
- cd frontend && pnpm run test:ci
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
|
pr:
|
||||||
|
desc: Runs all tasks required for a PR
|
||||||
|
cmds:
|
||||||
|
- task: generate
|
||||||
|
- task: go:all
|
||||||
|
- task: ui:check
|
||||||
|
- task: ui:fix
|
||||||
|
- task: test:ci
|
|
@ -7,6 +7,7 @@
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "nuxt prepare",
|
||||||
"lint": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore .",
|
"lint": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore .",
|
||||||
"lint:fix": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore . --fix",
|
"lint:fix": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore . --fix",
|
||||||
|
"typecheck": "nuxi typecheck",
|
||||||
"test:ci": "TEST_SHUTDOWN_API_SERVER=true vitest --run --config ./test/vitest.config.ts",
|
"test:ci": "TEST_SHUTDOWN_API_SERVER=true vitest --run --config ./test/vitest.config.ts",
|
||||||
"test:local": "TEST_SHUTDOWN_API_SERVER=false && vitest --run --config ./test/vitest.config.ts",
|
"test:local": "TEST_SHUTDOWN_API_SERVER=false && vitest --run --config ./test/vitest.config.ts",
|
||||||
"test:watch": " TEST_SHUTDOWN_API_SERVER=false vitest --config ./test/vitest.config.ts"
|
"test:watch": " TEST_SHUTDOWN_API_SERVER=false vitest --config ./test/vitest.config.ts"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue