Skip to content

Commit 679ebe5

Browse files
authored
CI - C#/Unity test suite concurrency improvements (#3001)
# Description of Changes New Unity test suite runs will cancel existing in-progress runs on the same PR or github ref. I tried to add a global limit of 2 test suites running at the same time, but I did not find a successful way of making this work. # API and ABI breaking changes None. CI-only change. # Expected complexity level and risk 1 # Testing - [x] Test suite still runs and succeeds - [x] If I push several commits in a row, previous runs get cancelled --------- Co-authored-by: Zeke Foppa <[email protected]>
1 parent c18b291 commit 679ebe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/csharp-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
jobs:
1010
unity-testsuite:
1111
runs-on: ubuntu-latest
12+
# Cancel any previous testsuites running on the same PR and/or ref.
13+
concurrency:
14+
group: unity-test-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
1216
steps:
1317
- name: Checkout repository
1418
uses: actions/checkout@v4

0 commit comments

Comments
 (0)