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
fix(ui-tests): allow ui tests on workflow dispatch (#1843)
Jaganc9fd421d09db
diff --git a/.github/workflows/connector-ui-sanity-tests.yml b/.github/workflows/connector-ui-sanity-tests.ymlindex 9586b299d1..9c81d715b1 100644--- a/.github/workflows/connector-ui-sanity-tests.yml+++ b/.github/workflows/connector-ui-sanity-tests.yml@@ -3,9 +3,9 @@ name: Connector UI Sanity Testson:workflow_dispatch:- pull_request:pull_request_review:- types: [submitted]+ types:+ - submittedmerge_group:types:- checks_requested@@ -84,33 +84,33 @@ jobs:exit 0- name: Checkout repository- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')uses: actions/checkout@v3- name: Decrypt connector auth file- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')env:CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}shell: bashrun: ./scripts/decrypt_connector_auth.sh- name: Set connector auth file path in env- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: echo "CONNECTOR_AUTH_FILE_PATH=$HOME/target/test/connector_auth.toml" >> $GITHUB_ENV- name: Set connector tests file path in env- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: echo "CONNECTOR_TESTS_FILE_PATH=$HOME/target/test/connector_tests.json" >> $GITHUB_ENV- name: Set ignore_browser_profile usage in env- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: echo "IGNORE_BROWSER_PROFILE=true" >> $GITHUB_ENV- name: Install latest compiler- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')uses: actions-rs/toolchain@v1with:toolchain: stable@@ -118,21 +118,21 @@ jobs:- uses: Swatinem/[email protected]- uses: baptiste0928/[email protected]- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')with:crate: diesel_clifeatures: postgresargs: "--no-default-features"- name: Diesel migration run- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashenv:DATABASE_URL: postgres://db_user:db_pass@localhost:5432/hyperswitch_dbrun: diesel migration run- name: Start server and run tests- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')env:UI_TESTCASES_PATH: ${{ secrets.UI_TESTCASES_PATH }}INPUT: ${{ matrix.connector }}@@ -140,12 +140,12 @@ jobs:run: sh .github/scripts/run_ui_tests.sh- name: View test results- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: cat tests/test_results.log- name: Check test results- if: github.event_name == 'pull_request_review' &&github.event.review.state == 'approved'+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: |if test "$( grep 'test result: FAILED' -r tests/test_results.log | wc -l )" -gt "0"; thendiff --git a/.typos.toml b/.typos.tomlindex 2a102ed908..a9e90e319c 100644--- a/.typos.toml+++ b/.typos.toml@@ -16,6 +16,7 @@ RegioBank = "RegioBank"SOM = "SOM" # Somalia country codeTHA = "THA" # Thailand country codeZAR = "ZAR" # South African Rand currency code+SUR = "SUR" # Single South American currency codepassord = "passord" # name of a css class for adyen ui testbottm = "bottm" # name of a css class for nexinets ui testklick = "klick" # Swedish word for clicks