mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 04:15:14 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user