fix(ci): replace actions/checkout with git clone
Some checks failed
CI / Build & Push Image (push) Has been skipped
CI / Build & Push Image (pull_request) Has been skipped
CI / Format (push) Failing after 3s
CI / Clippy (push) Failing after 40s
CI / Security Audit (push) Successful in 1m40s
CI / Format (pull_request) Failing after 1s
CI / Tests (push) Has been skipped
CI / Clippy (pull_request) Failing after 1s
CI / Security Audit (pull_request) Failing after 1s
CI / Tests (pull_request) Has been skipped
Some checks failed
CI / Build & Push Image (push) Has been skipped
CI / Build & Push Image (pull_request) Has been skipped
CI / Format (push) Failing after 3s
CI / Clippy (push) Failing after 40s
CI / Security Audit (push) Successful in 1m40s
CI / Format (pull_request) Failing after 1s
CI / Tests (push) Has been skipped
CI / Clippy (pull_request) Failing after 1s
CI / Security Audit (pull_request) Failing after 1s
CI / Tests (pull_request) Has been skipped
The actions/checkout action requires Node.js which is unavailable in the rust:1.89-bookworm container. Use manual git clone with shallow depth for a Node-free checkout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,10 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/https://gitea.com/actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- run: cargo fmt --check
|
- run: cargo fmt --check
|
||||||
|
|
||||||
@@ -37,7 +40,10 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/https://gitea.com/actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
- run: rustup component add clippy
|
- run: rustup component add clippy
|
||||||
# Lint both feature sets independently
|
# Lint both feature sets independently
|
||||||
- name: Clippy (server)
|
- name: Clippy (server)
|
||||||
@@ -51,7 +57,10 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
- run: cargo install cargo-audit
|
- run: cargo install cargo-audit
|
||||||
- run: cargo audit
|
- run: cargo audit
|
||||||
|
|
||||||
@@ -65,7 +74,10 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
- name: Run tests (server)
|
- name: Run tests (server)
|
||||||
run: cargo test --features server --no-default-features
|
run: cargo test --features server --no-default-features
|
||||||
- name: Run tests (web)
|
- name: Run tests (web)
|
||||||
@@ -83,7 +95,10 @@ jobs:
|
|||||||
github.event_name == 'push' &&
|
github.event_name == 'push' &&
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch="${GITHUB_REF_NAME}" "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
|
|
||||||
- name: Determine image tag
|
- name: Determine image tag
|
||||||
id: tag
|
id: tag
|
||||||
|
|||||||
Reference in New Issue
Block a user