Skip to content

Commit d6aafff

Browse files
authored
Merge pull request #155 from UiPath/fix/integration-test
ci: add cloud to integration tests pipeline
2 parents dff1028 + ad06518 commit d6aafff

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/integration_tests.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22-
22+
2323
- name: Discover testcases
2424
id: discover
2525
run: |
2626
# Find all testcase folders (excluding common folders like README, etc.)
2727
testcase_dirs=$(find testcases -maxdepth 1 -type d -name "*-*" | sed 's|testcases/||' | sort)
28-
28+
2929
echo "Found testcase directories:"
3030
echo "$testcase_dirs"
31-
31+
3232
# Convert to JSON array for matrix
3333
testcases_json=$(echo "$testcase_dirs" | jq -R -s -c 'split("\n")[:-1]')
3434
echo "testcases=$testcases_json" >> $GITHUB_OUTPUT
@@ -42,10 +42,10 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
testcase: ${{ fromJson(needs.discover-testcases.outputs.testcases) }}
45-
environment: [alpha]
46-
45+
environment: [alpha, cloud] # temporary disable staging
46+
4747
name: "${{ matrix.testcase }} / ${{ matrix.environment }}"
48-
48+
4949
steps:
5050
- name: Checkout code
5151
uses: actions/checkout@v4
@@ -55,19 +55,18 @@ jobs:
5555

5656
- name: Run testcase
5757
env:
58-
UIPATH_TENANT_ID: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TENANT_ID || secrets.CLOUD_TENANT_ID }}
59-
UIPATH_FOLDER_KEY: ${{ matrix.environment == 'alpha' && secrets.ALPHA_FOLDER_KEY || secrets.CLOUD_FOLDER_KEY }}
60-
PAT_TOKEN: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TEST_PAT_TOKEN || secrets.CLOUD_TEST_PAT_TOKEN }}
61-
CLIENT_ID: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TEST_CLIENT_ID || secrets.CLOUD_TEST_CLIENT_ID }}
62-
CLIENT_SECRET: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TEST_CLIENT_SECRET || secrets.CLOUD_TEST_CLIENT_SECRET }}
63-
BASE_URL: ${{ matrix.environment == 'alpha' && secrets.ALPHA_BASE_URL || secrets.CLOUD_BASE_URL }}
58+
UIPATH_TENANT_ID: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TENANT_ID || matrix.environment == 'staging' && secrets.STAGING_TENANT_ID || matrix.environment == 'cloud' && secrets.CLOUD_TENANT_ID }}
59+
UIPATH_FOLDER_KEY: ${{ matrix.environment == 'alpha' && secrets.ALPHA_FOLDER_KEY || matrix.environment == 'staging' && secrets.STAGING_FOLDER_KEY || matrix.environment == 'cloud' && secrets.CLOUD_FOLDER_KEY }}
60+
CLIENT_ID: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TEST_CLIENT_ID || matrix.environment == 'staging' && secrets.STAGING_TEST_CLIENT_ID || matrix.environment == 'cloud' && secrets.CLOUD_TEST_CLIENT_ID }}
61+
CLIENT_SECRET: ${{ matrix.environment == 'alpha' && secrets.ALPHA_TEST_CLIENT_SECRET || matrix.environment == 'staging' && secrets.STAGING_TEST_CLIENT_SECRET || matrix.environment == 'cloud' && secrets.CLOUD_TEST_CLIENT_SECRET }}
62+
BASE_URL: ${{ matrix.environment == 'alpha' && secrets.ALPHA_BASE_URL || matrix.environment == 'staging' && secrets.STAGING_BASE_URL || matrix.environment == 'cloud' && secrets.CLOUD_BASE_URL }}
6463
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
6564
GITHUB_RUN_ID: ${{ github.run_number }}
6665
working-directory: testcases/${{ matrix.testcase }}
6766
run: |
6867
echo "Running testcase: ${{ matrix.testcase }}"
6968
echo "Environment: ${{ matrix.environment }}"
7069
echo "Working directory: $(pwd)"
71-
70+
7271
# Execute the testcase run script directly
73-
bash run.sh
72+
bash run.sh

0 commit comments

Comments
 (0)