Skip to content

Commit

Permalink
ci: add e2e test to on-pr workflow (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 authored Jan 22, 2025
1 parent fb31ae5 commit 40fc6bc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,26 @@ jobs:
run: npm i
- name: Test
run: npm run test
test-e2e:
name: Test E2E
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v2
with:
require: write
id: check_permission
- name: Trigger E2E Workflow in backend-sdk-tests and Wait
if: ${{ steps.check_permission.outputs.require-result == 'true' }}
uses: convictional/[email protected]
with:
owner: passageidentity
repo: backend-sdk-tests
workflow_file_name: integration-tests-complete.yml
github_token: ${{ secrets.BE_SDK_PAT }}
# github.head_ref is only available on PR events, while github.ref_name provides the branch name on other events
client_payload: >-
{
"target_sdk":"node",
"use_test_release":true,
"sdk_branch_ref":"${{ github.head_ref || github.ref_name }}"
}

0 comments on commit 40fc6bc

Please sign in to comment.