Skip to content

Commit 5a6ce05

Browse files
authored
ci: add e2e test to on-pr workflow (#40)
1 parent b83a119 commit 5a6ce05

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
@@ -38,6 +38,29 @@ jobs:
3838
run: cargo build --release --verbose
3939
- name: Test
4040
run: cargo test --release --no-fail-fast --verbose
41+
test-e2e:
42+
name: Test E2E
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions-cool/check-user-permission@v2
46+
with:
47+
require: write
48+
id: check_permission
49+
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
50+
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
51+
uses: convictional/trigger-workflow-and-wait@v1.6.5
52+
with:
53+
owner: passageidentity
54+
repo: backend-sdk-tests
55+
workflow_file_name: integration-tests-flex.yml
56+
github_token: ${{ secrets.BE_SDK_PAT }}
57+
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
58+
client_payload: >-
59+
{
60+
"target_sdk":"flex-rust",
61+
"use_test_release":true,
62+
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
63+
}
4164
publish-check:
4265
name: Publish Check
4366
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)