Skip to content

Commit 8c6271b

Browse files
committed
ci: add e2e test to on-pr workflow
1 parent 38b6193 commit 8c6271b

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/on-pull-request.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,27 @@ jobs:
4040
- name: Install dependencies
4141
run: pip install -e .[dev]
4242
- name: Test
43-
run: pytest
43+
run: pytest
44+
test-e2e:
45+
name: Test E2E
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions-cool/check-user-permission@v2
49+
with:
50+
require: write
51+
id: check_permission
52+
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
53+
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
54+
uses: convictional/[email protected]
55+
with:
56+
owner: passageidentity
57+
repo: backend-sdk-tests
58+
workflow_file_name: integration-tests-complete.yml
59+
github_token: ${{ secrets.BE_SDK_PAT }}
60+
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
61+
client_payload: >-
62+
{
63+
"target_sdk":"python",
64+
"use_test_release":true,
65+
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
66+
}

0 commit comments

Comments
 (0)