Skip to content

Commit

Permalink
[CI/CD] Run all unit tests on release branch PRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind committed Jul 10, 2024
1 parent 85ff36f commit b64130e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit b64130e

Please sign in to comment.