Skip to content

Commit 739a56b

Browse files
jianghao0718chuckp22
authored andcommitted
Manual backport of #597 - resolved conflict
1 parent 9be46ed commit 739a56b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Run Integration Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches: ['master', 'enterprise-[0-9]*.[0-9]*-release', 'enterprise-[0-9]*.[0-9]*.[0-9]*-release']
7+
workflow_dispatch:
8+
inputs:
9+
target-branch:
10+
description: 'Branch that would be merged into'
11+
required: true
12+
source-branch:
13+
description: 'Branch that would be merged'
14+
required: true
15+
16+
# Get target and source branch from different variables depending on how it was triggered
17+
env:
18+
TARGET_BRANCH: '${{ github.event.inputs.target-branch }}${{ github.base_ref || github.ref_name }}'
19+
SOURCE_BRANCH: '${{ github.event.inputs.source-branch }}${{ github.head_ref || github.ref_name }}'
20+
21+
jobs:
22+
integration-tests:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
jankyJobName:
27+
- enterprise2-backup-utils-binary-backup
28+
- enterprise2-backup-utils-migration
29+
steps:
30+
- uses: actions/checkout@v3
31+
with:
32+
fetch-depth: 1
33+
- name: Queue ${{ matrix.jankyJobName }} build
34+
uses: ./.github/actions/proxy-janky-build
35+
id: proxy-janky-build
36+
with:
37+
janky-token: '${{ secrets.API_AUTH_TOKEN }}'
38+
job-name: '${{ matrix.jankyJobName }}'
39+
branch-name: '${{ env.SOURCE_BRANCH }}'
40+
force : "true"
41+
# enterprise2 target branch is same as target branch for PR (either master or enterprise-[0-9]*.[0-9]*-release)
42+
envVars: "JANKY_ENV_BACKUP_UTILS_BRANCH=${{ env.SOURCE_BRANCH }},JANKY_ENV_ENTERPRISE2_BRANCH=${{ env.TARGET_BRANCH }}"

0 commit comments

Comments
 (0)