Skip to content

Commit c3d1a61

Browse files
authored
ci: add e2e test to on-pr workflow (#168)
1 parent 1aaa958 commit c3d1a61

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
@@ -47,4 +47,27 @@ jobs:
4747
- name: Install dependencies
4848
run: bundle install
4949
- name: Test
50-
run: ruby tests/all.rb
50+
run: ruby tests/all.rb
51+
test-e2e:
52+
name: Test E2E
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions-cool/check-user-permission@v2
56+
with:
57+
require: write
58+
id: check_permission
59+
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
60+
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
61+
uses: convictional/trigger-workflow-and-wait@v1.6.5
62+
with:
63+
owner: passageidentity
64+
repo: backend-sdk-tests
65+
workflow_file_name: integration-tests-complete.yml
66+
github_token: ${{ secrets.BE_SDK_PAT }}
67+
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
68+
client_payload: >-
69+
{
70+
"target_sdk":"ruby",
71+
"use_test_release":true,
72+
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
73+
}

0 commit comments

Comments
 (0)