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

ci: use matrix strategy for specifying runners (#5243)

Sanchith Hegde307135366e29
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index 0d024ada38..92688a31a6 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -88,7 +88,14 @@ jobs:
check-msrv:
name: Check compilation on MSRV toolchain
- runs-on: hyperswitch-runners
+ runs-on: ${{ matrix.runner }}
+
+ strategy:
+ fail-fast: true
+ matrix:
+ runner:
+ - ubuntu-latest
+ - hyperswitch-runners
steps:
- name: Checkout repository
@@ -206,7 +213,14 @@ jobs:
test:
name: Run tests on stable toolchain
- runs-on: hyperswitch-runners
+ runs-on: ${{ matrix.runner }}
+
+ strategy:
+ fail-fast: true
+ matrix:
+ runner:
+ - ubuntu-latest
+ - hyperswitch-runners
steps:
- name: Generate a token
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index 3b36753d95..debfdd31a4 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -39,7 +39,13 @@ jobs:
check-msrv:
name: Check compilation on MSRV toolchain
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.runner }}
+
+ strategy:
+ fail-fast: true
+ matrix:
+ runner:
+ - ubuntu-latest
steps:
- name: Checkout repository
@@ -108,7 +114,13 @@ jobs:
test:
name: Run tests on stable toolchain
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.runner }}
+
+ strategy:
+ fail-fast: true
+ matrix:
+ runner:
+ - ubuntu-latest
steps:
- name: Checkout repository