add integrate task

This commit is contained in:
Yanick Champoux 2023-05-16 11:41:21 -04:00
parent edfaf81b14
commit 7d8cccf7f8

View File

@ -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 -