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

chore: run clippy with default number of jobs in github workflows (#7088)

Hrithikesh337095bce8c5
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index d01c26d511..b337a17995 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -90,7 +90,7 @@ jobs:
env:
# Use `sccache` for caching compilation artifacts
- RUSTC_WRAPPER: sccache
+ # RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -126,11 +126,16 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Install sccache
- uses: taiki-e/[email protected]
- with:
- tool: sccache
- checksum: true
+ # - name: Install sccache
+ # uses: taiki-e/[email protected]
+ # with:
+ # tool: sccache
+ # checksum: true
+
+ - name: Install rust cache
+ uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Install cargo-hack
uses: taiki-e/[email protected]
@@ -181,7 +186,7 @@ jobs:
env:
# Use `sccache` for caching compilation artifacts
- RUSTC_WRAPPER: sccache
+ # RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -229,11 +234,16 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Install sccache
- uses: taiki-e/[email protected]
- with:
- tool: sccache
- checksum: true
+ # - name: Install sccache
+ # uses: taiki-e/[email protected]
+ # with:
+ # tool: sccache
+ # checksum: true
+
+ - name: Install rust cache
+ uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Install cargo-hack
uses: taiki-e/[email protected]
@@ -259,7 +269,7 @@ jobs:
- name: Run clippy
shell: bash
- run: just clippy --jobs 2
+ run: just clippy
- name: Check Cargo.lock changed
if: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
@@ -315,7 +325,9 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install rust cache
- uses: Swatinem/[email protected]
+ uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Install just
uses: taiki-e/[email protected]
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index e17ce46d85..306e681259 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -43,7 +43,7 @@ jobs:
env:
# Use `sccache` for caching compilation artifacts
- RUSTC_WRAPPER: sccache
+ # RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -78,15 +78,15 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Install sccache
- uses: taiki-e/[email protected]
- with:
- tool: sccache
- checksum: true
-
- # - uses: Swatinem/[email protected]
+ # - name: Install sccache
+ # uses: taiki-e/[email protected]
# with:
- # save-if: ${{ github.event_name == 'push' }}
+ # tool: sccache
+ # checksum: true
+
+ - uses: Swatinem/[email protected]
+ with:
+ save-if: ${{ github.event_name == 'push' }}
- name: Install cargo-hack
uses: baptiste0928/[email protected]
@@ -140,7 +140,7 @@ jobs:
env:
# Use `sccache` for caching compilation artifacts
- RUSTC_WRAPPER: sccache
+ # RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -170,11 +170,11 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Install sccache
- uses: taiki-e/[email protected]
- with:
- tool: sccache
- checksum: true
+ # - name: Install sccache
+ # uses: taiki-e/[email protected]
+ # with:
+ # tool: sccache
+ # checksum: true
- name: Install cargo-hack
uses: baptiste0928/[email protected]
@@ -196,13 +196,13 @@ jobs:
# with:
# crate: cargo-nextest
- # - uses: Swatinem/[email protected]
- # with:
- # save-if: ${{ github.event_name == 'push' }}
+ - uses: Swatinem/[email protected]
+ with:
+ save-if: ${{ github.event_name == 'push' }}
- name: Run clippy
shell: bash
- run: just clippy --jobs 2
+ run: just clippy
- name: Cargo hack
if: ${{ github.event_name == 'push' }}
@@ -249,7 +249,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install rust cache
- uses: Swatinem/[email protected]
+ uses: Swatinem/[email protected]
- name: Run cargo check enabling only the release and v2 features
shell: bash
diff --git a/.github/workflows/connector-sanity-tests.yml b/.github/workflows/connector-sanity-tests.yml
index 48e6a946a4..1f10828de9 100644
--- a/.github/workflows/connector-sanity-tests.yml
+++ b/.github/workflows/connector-sanity-tests.yml
@@ -86,7 +86,9 @@ jobs:
with:
toolchain: stable 2 weeks ago
- - uses: Swatinem/[email protected]
+ - uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Decrypt connector auth file
env:
diff --git a/.github/workflows/connector-ui-sanity-tests.yml b/.github/workflows/connector-ui-sanity-tests.yml
index f3d4635ab1..9cad6191f0 100644
--- a/.github/workflows/connector-ui-sanity-tests.yml
+++ b/.github/workflows/connector-ui-sanity-tests.yml
@@ -122,7 +122,9 @@ jobs:
toolchain: stable
- name: Build and Cache Rust Dependencies
- uses: Swatinem/[email protected]
+ uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Install Diesel CLI with Postgres Support
uses: baptiste0928/[email protected]
diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.yml
index b8ce65f4b6..bc6bd7849f 100644
--- a/.github/workflows/postman-collection-runner.yml
+++ b/.github/workflows/postman-collection-runner.yml
@@ -92,7 +92,9 @@ jobs:
- name: Build and Cache Rust Dependencies
if: ${{ ((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')}}
- uses: Swatinem/[email protected]
+ uses: Swatinem/[email protected]
+ with:
+ save-if: false
- name: Install Protoc
if: ${{ ((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')}}