Skip to content

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

fix(ci): add rustfmt component to rust-toolchain installation (#9807)

Ayush Anand4b0c96dd4097
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.yml
index 160d15e60d..0aeb30d653 100644
--- a/.github/workflows/cypress-tests-runner.yml
+++ b/.github/workflows/cypress-tests-runner.yml
@@ -489,6 +489,8 @@ jobs:
runs-on: hyperswitch-runners
env:
CODECOV_FILE: "lcov.info"
+ # Use `sccache` for caching compilation artifacts
+ RUSTC_WRAPPER: sccache
services:
redis:
@@ -566,7 +568,13 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable 2 weeks ago
- components: llvm-tools-preview
+ components: llvm-tools-preview, rustfmt
+
+ - name: Install Protoc
+ if: ${{ env.RUN_TESTS == 'true' }}
+ uses: arduino/setup-protoc@v3
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install sccache
if: ${{ env.RUN_TESTS == 'true' }}
@@ -657,12 +665,11 @@ jobs:
ROUTER__SERVER__WORKERS: 4
PAYMENTS_CONNECTORS: ${{ env.PAYMENTS_CONNECTORS }}
shell: bash -leuo pipefail {0}
- continue-on-error: true
# We aren't specifying `command` and `jobs` arguments currently
run: scripts/execute_cypress.sh "" "" "cypress-tests-v2"
- name: Stop running server
- if: ${{ env.RUN_TESTS == 'true' }} && always()
+ if: ${{ env.RUN_TESTS == 'true' && (success() || failure()) }}
run: |
kill "${{ env.PID }}"
@@ -681,12 +688,12 @@ jobs:
# to process the generated `.profraw` files.
# - --keep-only argument is used to exclude external crates in generated lcov.info file (~500MiB -> ~70MiB)
- name: Process coverage report
- if: ${{ env.RUN_TESTS == 'true' && github.event_name != 'merge_group' }}
+ if: ${{ env.RUN_TESTS == 'true' && github.event_name != 'merge_group' && (success() || failure()) }}
run: grcov . --source-dir . --output-types lcov --output-path ${{ env.CODECOV_FILE }} --binary-path ./target/debug --keep-only "crates/*"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
- if: ${{ env.RUN_TESTS == 'true' && github.event_name != 'merge_group'}}
+ if: ${{ env.RUN_TESTS == 'true' && github.event_name != 'merge_group' && (success() || failure()) }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ env.CODECOV_FILE }}