Skip to content

Commit

Permalink
add test group input
Browse files Browse the repository at this point in the history
  • Loading branch information
hossam-adyen committed Dec 12, 2023
1 parent e1af528 commit 3ffdd0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case $option in
npm run test:ci:magento:express-checkout
;;
"webhook")
echo "Running Express Checkout E2E Tests."
echo "Running Webhook E2E Tests."
npm run test:ci:magento:webhook
;;
"all")
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/e2e-test-dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Integration Test Repository Dispatch Pipeline
run-name: E2E tests against Test Repository ${{inputs.testBranch}} with Express Checkout ${{inputs.expressBranch}}
run-name: E2E tests against Test Repository ${{inputs.testBranch}} with Express Checkout ${{inputs.expressBranch}} with test group ${{inputs.testGroup}}

on:
workflow_dispatch:
Expand All @@ -12,6 +12,10 @@ on:
description: "Express Checkout Repository Pipeline"
required: true
default: "develop"
testGroup:
description: "Test group all | express-checkout | webhook"
required: true
default: "all"

jobs:
build:
Expand Down Expand Up @@ -85,7 +89,7 @@ jobs:
run: docker exec magento2-container make fs

- name: Run E2E tests
run: docker-compose -f .github/workflows/templates/docker-compose.yml run --rm playwright /e2e.sh all
run: docker-compose -f .github/workflows/templates/docker-compose.yml run --rm playwright /e2e.sh ${{inputs.testGroup}}
env:
INTEGRATION_TESTS_BRANCH: ${{inputs.testBranch}}
MAGENTO_ADMIN_USERNAME: ${{secrets.MAGENTO_ADMIN_USERNAME}}
Expand Down

0 comments on commit 3ffdd0d

Please sign in to comment.