Skip to content

Commit 38dd4bb

Browse files
committed
Add cluster run as optional runs
1 parent 4b71b29 commit 38dd4bb

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/integration-tests.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,31 @@ jobs:
3737
janky-token: '${{ secrets.API_AUTH_TOKEN }}'
3838
job-name: '${{ matrix.jankyJobName }}'
3939
branch-name: '${{ env.SOURCE_BRANCH }}'
40-
force : "true"
40+
# enterprise2 target branch is same as target branch for PR (either master or enterprise-[0-9]*.[0-9]*-release)
41+
envVars: "JANKY_ENV_BACKUP_UTILS_BRANCH=${{ env.SOURCE_BRANCH }},JANKY_ENV_ENTERPRISE2_BRANCH=${{ env.TARGET_BRANCH }}"
42+
43+
# Cluster integration tests are optional based on label and PR titles
44+
cluster-integration-tests:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
jankyJobName:
49+
- enterprise2-backup-utils-cluster-binary-backup
50+
- enterprise2-backup-utils-cluster-migration
51+
steps:
52+
- uses: actions/checkout@v3
53+
with:
54+
fetch-depth: 1
55+
- name: Queue ${{ matrix.jankyJobName }} build
56+
if: |
57+
github.event_name == 'workflow_dispatch' ||
58+
contains(github.event.pull_request.title, '[cluster]') ||
59+
contains(github.event.pull_request.labels.*.name, 'cluster')
60+
uses: ./.github/actions/proxy-janky-build
61+
id: proxy-janky-build
62+
with:
63+
janky-token: '${{ secrets.API_AUTH_TOKEN }}'
64+
job-name: '${{ matrix.jankyJobName }}'
65+
branch-name: '${{ env.SOURCE_BRANCH }}'
4166
# enterprise2 target branch is same as target branch for PR (either master or enterprise-[0-9]*.[0-9]*-release)
4267
envVars: "JANKY_ENV_BACKUP_UTILS_BRANCH=${{ env.SOURCE_BRANCH }},JANKY_ENV_ENTERPRISE2_BRANCH=${{ env.TARGET_BRANCH }}"

0 commit comments

Comments
 (0)