Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(platform): add platform tests to CI pipeline (#11814)
Ankit Kumar Gupta7f054a8edf70
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.ymlindex 3ebd15fc07..3d6ca1f6b0 100644--- a/.github/workflows/cypress-tests-runner.yml+++ b/.github/workflows/cypress-tests-runner.yml@@ -25,6 +25,7 @@ env:OPTIONAL_PAYMENTS_CONNECTORS_BATCH_5: "paypal worldpayxml volt"OPTIONAL_PAYMENTS_CONNECTORS_BATCH_6: "novalnet noon"ALPHA_PAYMENTS_CONNECTORS: "celero silverflow"+ PLATFORM_CONNECTORS: "stripe cybersource"RUST_BACKTRACE: shortRUSTUP_MAX_RETRIES: 10RUN_TESTS: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}@@ -179,6 +180,14 @@ jobs:"parallel": 3,"report_artifact_name": "cypress-mandatory-test-results-batch-2","server_logs_artifact": "mandatory-server-logs-batch-2"+ },+ {+ "name": "platform",+ "connectors": "",+ "platform_connectors": "'"${PLATFORM_CONNECTORS}"'",+ "parallel": 2,+ "report_artifact_name": "cypress-mandatory-test-results-platform",+ "server_logs_artifact": "mandatory-server-logs-platform"}]}'@@ -369,12 +378,13 @@ jobs:CYPRESS_BASEURL: "http://localhost:8080"ROUTER__SERVER__WORKERS: 4PAYMENTS_CONNECTORS: "${{ matrix.batch.connectors }}"+ PLATFORM_CONNECTORS: "${{ matrix.batch.platform_connectors }}"shell: bash -leuo pipefail {0}run: |scripts/execute_cypress.sh --parallel ${{ matrix.batch.parallel }}kill "${{ env.PID }}"-+- name: Upload server logs on failureif: env.RUN_TESTS == 'true' && failure()uses: actions/upload-artifact@v7diff --git a/cypress-tests/package.json b/cypress-tests/package.jsonindex 74787a340a..53ec9f5063 100644--- a/cypress-tests/package.json+++ b/cypress-tests/package.json@@ -12,6 +12,7 @@"cypress:payment-method-list": "cypress run --headless --spec 'cypress/e2e/spec/PaymentMethodList/**/*'","cypress:payments": "cypress run --headless --spec 'cypress/e2e/spec/Payment/**/*'","cypress:payouts": "cypress run --headless --spec 'cypress/e2e/spec/Payout/**/*'",+ "cypress:platform": "cypress run --headless --spec 'cypress/e2e/spec/Platform/**/*'","cypress:routing": "cypress run --headless --spec 'cypress/e2e/spec/Routing/**/*'","report:generate": "node scripts/report-generator.js","report:open": "open dashboard/index.html || start dashboard/index.html || xdg-open dashboard/index.html",diff --git a/scripts/execute_cypress.sh b/scripts/execute_cypress.shindex 72544e6546..3f41b459fb 100755--- a/scripts/execute_cypress.sh+++ b/scripts/execute_cypress.sh@@ -156,12 +156,14 @@ run_tests() {read -r -a payouts <<< "${PAYOUTS_CONNECTORS:-}"read -r -a payment_method_list <<< "${PAYMENT_METHOD_LIST:-}"read -r -a routing <<< "${ROUTING:-}"+ read -r -a platform <<< "${PLATFORM_CONNECTORS:-}"declare -A env_to_service=(["PAYMENTS_CONNECTORS"]="payments"["PAYOUTS_CONNECTORS"]="payouts"["PAYMENT_METHOD_LIST"]="payment_method_list"["ROUTING"]="routing"+ ["PLATFORM_CONNECTORS"]="platform")local active_services=()