diff --git a/Taskfile.yaml b/Taskfile.yaml index 24f5b93..150dd59 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -42,12 +42,14 @@ tasks: integrate: deps: [checks] + preconditions: + - sh: git is-clean + msg: Workspace is not clean + - sh: git diff-ls {{.PARENT_BRANCH}} | grep test + msg: No test added + - sh: git diff-ls main | grep .changeset/ + msg: No new changeset cmds: - - git is-clean - # did we had tests? - - git diff-ls {{.PARENT_BRANCH}} | grep test - # a new changeset - - git diff-ls main | grep .changeset/ - git checkout {{.PARENT_BRANCH}} - git weld -