tests: Cancel in-progress tests on PR updates
Before this commit GitHub Action runs that were triggered by a PR were not canceled when updates were made to the same PR. This lead to even more clogging of our pipelines and not enough runners being available. This changes the behavior in a way that whenever a PR gets updated all still-in-progress runs get canceled and new runs get spawned.
This commit is contained in:
parent
b8b81280ff
commit
37d5a23a64
1 changed files with 4 additions and 0 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -2,6 +2,10 @@ name: Tests
|
|||
|
||||
on: [pull_request, push]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test_suite:
|
||||
name: "Unittest"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue