2023-05-10 18:36:56 +00:00
|
|
|
# https://taskfile.dev
|
2023-05-16 15:41:21 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
vars:
|
|
|
|
PARENT_BRANCH: main
|
2023-05-10 18:36:56 +00:00
|
|
|
|
|
|
|
tasks:
|
2023-05-16 15:41:21 +00:00
|
|
|
test: vitest run src
|
2023-05-10 18:36:56 +00:00
|
|
|
test:dev: vitest src
|
2023-05-16 15:41:21 +00:00
|
|
|
|
|
|
|
integrate:
|
|
|
|
deps: [test]
|
|
|
|
preconditions:
|
|
|
|
- sh: git is-clean
|
|
|
|
msg: checkout not clean
|
|
|
|
- sh: git diff-ls {{.PARENT_BRANCH}} | grep test
|
|
|
|
msg: no tests were added
|
|
|
|
- sh: git diff-ls {{.PARENT_BRANCH}} | grep CHANGELOG.yml
|
|
|
|
msg: no changelog entry detected
|
|
|
|
cmds:
|
|
|
|
- git checkout {{.PARENT_BRANCH}}
|
|
|
|
- git weld -
|