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: enable compilation check for v2 features by running `check_v2` on merge_group (#5804)

Sai Harsha Vardhan4edf2f243d69
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index 722e0d22b1..a31d045001 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -297,12 +297,10 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable 2 weeks ago
- components: clippy
- name: Install rust cache
uses: Swatinem/[email protected]
-
- name: Install just
uses: taiki-e/[email protected]
with:
@@ -316,3 +314,7 @@ jobs:
# # We only want to ensure successful compilation for now.
# RUSTFLAGS: "-D warnings -A clippy::todo"
run: just check_v2
+
+ - name: Run cargo check enabling only the release and v2 features
+ shell: bash
+ run: cargo check --no-default-features --features "release,v2"
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index ace8d7eaf0..0f92fc36c3 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -197,3 +197,29 @@ jobs:
- name: Spell check
uses: crate-ci/typos@master
+
+ check-v2:
+ name: Check compilation for V2 features
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install mold linker
+ uses: rui314/setup-mold@v1
+ if: ${{ runner.os == 'Linux' }}
+ with:
+ make-default: true
+
+ - name: Install Rust
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: stable 2 weeks ago
+
+ - name: Install rust cache
+ uses: Swatinem/[email protected]
+
+ - name: Run cargo check enabling only the release and v2 features
+ shell: bash
+ run: cargo check --no-default-features --features "release,v2"