fix(ci):
bat-rust / Build and test Rust (push) Successful in 1m45s

This commit is contained in:
2026-07-21 22:05:25 +08:00
committed by GitHub
parent 84047fbacb
commit 40bd82e227
+6 -5
View File
@@ -52,6 +52,7 @@ jobs:
- name: Show tool versions
shell: bash
run: |
source /var/lib/act_runner/env.sh
set -euo pipefail
command -v git
rustc --version
@@ -61,20 +62,20 @@ jobs:
- name: Check formatting
shell: bash
run: cargo fmt --all -- --check
run: source /var/lib/act_runner/env.sh && cargo fmt --all -- --check
- name: Check workspace
shell: bash
run: cargo check --workspace --locked
run: source /var/lib/act_runner/env.sh && cargo check --workspace --locked
- name: Build workspace
shell: bash
run: cargo build --workspace --locked
run: source /var/lib/act_runner/env.sh && cargo build --workspace --locked
- name: Run clippy
shell: bash
run: cargo clippy --workspace --all-targets --locked -- -D warnings
run: source /var/lib/act_runner/env.sh && cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Run tests
shell: bash
run: cargo test --workspace --locked
run: source /var/lib/act_runner/env.sh && cargo test --workspace --locked