From b64130e54d48fa1e131689ca820a839778b2428b Mon Sep 17 00:00:00 2001 From: Josh Lind Date: Mon, 8 Jul 2024 18:42:11 -0400 Subject: [PATCH] [CI/CD] Run all unit tests on release branch PRs. --- .github/workflows/lint-test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 6782c2701e09e..abc71d6968114 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -108,6 +108,10 @@ jobs: # Run only the targeted rust unit tests. This is a PR required job. rust-targeted-unit-tests: + if: | # Don't run on release branches. Instead, all unit tests will be triggered. + ( + !contains(github.event.pull_request.base.ref, '-release-') + ) needs: file_change_determinator runs-on: high-perf-docker steps: @@ -126,7 +130,8 @@ jobs: ( github.event_name == 'workflow_dispatch' || github.event_name == 'push' || - contains(github.event.pull_request.labels.*.name, 'CICD:run-all-unit-tests') + contains(github.event.pull_request.labels.*.name, 'CICD:run-all-unit-tests') || + contains(github.event.pull_request.base.ref, '-release-') ) runs-on: high-perf-docker steps: