Skip to content

Commit 40fc6bc

Browse files
authored
ci: add e2e test to on-pr workflow (#222)
1 parent fb31ae5 commit 40fc6bc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,26 @@ jobs:
3939
run: npm i
4040
- name: Test
4141
run: npm run test
42+
test-e2e:
43+
name: Test E2E
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions-cool/check-user-permission@v2
47+
with:
48+
require: write
49+
id: check_permission
50+
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
51+
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
52+
uses: convictional/[email protected]
53+
with:
54+
owner: passageidentity
55+
repo: backend-sdk-tests
56+
workflow_file_name: integration-tests-complete.yml
57+
github_token: ${{ secrets.BE_SDK_PAT }}
58+
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
59+
client_payload: >-
60+
{
61+
"target_sdk":"node",
62+
"use_test_release":true,
63+
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
64+
}

0 commit comments

Comments
 (0)