diff --git a/Taskfile.yaml b/Taskfile.yaml index 0692409..65705da 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -1,6 +1,22 @@ # https://taskfile.dev -version: '3' +version: "3" + +vars: + PARENT_BRANCH: main tasks: - test: vitest run src + test: vitest run src test:dev: vitest src + + 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 -