Is it possible to have the CI run a specific workflow only one at a time? I have a scenario where we have a CI pipeline that runs integration tests, however if we have multiple integration tests running at the same time, the side effects can be a bit wonky. So i was wondering if it was possible to limit a workflow to a queue and have them run sequentially.
Currently it’s not supported to limit a workflow to a queue and have them run sequentially, this is something github is working on, sorry i don’t have a timeline to share yet(please check similar ticket here).
As a workaround, you can use rest api to check if there’s any inprogress&queued workflow.
If there are, wait some minutes and re-check, run the jobs until previous workflow is completed.
rest api doc: https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs