add integrate task
This commit is contained in:
parent
edfaf81b14
commit
7d8cccf7f8
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user