Created
June 25, 2020 07:46
-
-
Save jayco/5a96351d7a23f851cc5396a345884e95 to your computer and use it in GitHub Desktop.
Concurrency Gate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- command: echo "running unit tests" | |
key: unit-tests | |
###################### | |
# START OF GATE 1 # | |
###################### | |
- command: "exit 0" # start the gate region by using a no-op | |
concurrency_group: gate | |
concurrency: 1 | |
- wait | |
- command: echo "running deployment" | |
key: dep | |
- command: echo "running e2e tests" | |
parallelism: 3 | |
depends_on: dep | |
- wait | |
- command: "exit 0" # end the gate region by using a no-op | |
concurrency_group: gate | |
concurrency: 1 | |
###################### | |
# END OF GATE 1 # | |
###################### | |
- command: echo "running changelog publication" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This example shows using a concurrency gate to block out a deployment and e2e test to allow the e2e tests to run in parallel, while still preserving a concurrency of 1 for the surrounding block.
You can view this running with three builds here: