We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently we use the attribute dependencies to define dependencies among targets.
dependencies
Although it works fine, but it is just a pre-run (setup) hook, and we would need to add support for post-run (teardown) hook as well.
Example:
version: 1.0 env-file: .env groups: main: tasks: target1: help: target1 run: echo "target 1" target2: help: target2 run: echo "target 2" build: targets: clean: help: target clean hooks: pre-run: - task: main.target1 post-run: - task: main.target2 run: echo "target clean"
The text was updated successfully, but these errors were encountered:
change in the .makim.yaml layout
current state:
... build: targets: clean: help: target clean dependencies: - task: main.target1 if: ${{ 1 == 1 }} run: echo "target clean"
... build: targets: clean: help: target clean hooks: pre-run: - task: main.target1 if: ${{ 1 == 1 }} run: echo "target clean"
example with post-run
... build: tasks: clean: help: target clean hooks: pre-run: - task: main.target1a if: ${{ 1 == 1 }} - task: main.target1b if: ${{ 1 == 1 }} post-run: - task: main.target2a if: ${{ 1 == 1 }} - task: main.target2b if: ${{ 1 == 1 }} run: echo "target clean"
so for this last example, when makim build.clean is executed, it runs the code in the following order:
makim build.clean
Sorry, something went wrong.
done by @abhijeetSaroha #115 thank you
No branches or pull requests
Currently we use the attribute
dependencies
to define dependencies among targets.Although it works fine, but it is just a pre-run (setup) hook, and we would need to add support for post-run (teardown) hook as well.
Example:
The text was updated successfully, but these errors were encountered: