mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
@@ -94,6 +94,9 @@ runs:
|
|||||||
if: inputs.install-cross-tools == 'true'
|
if: inputs.install-cross-tools == 'true'
|
||||||
uses: taiki-e/install-action@cargo-zigbuild
|
uses: taiki-e/install-action@cargo-zigbuild
|
||||||
|
|
||||||
|
- name: Install cargo-nextest
|
||||||
|
uses: taiki-e/install-action@cargo-nextest
|
||||||
|
|
||||||
- name: Setup Rust cache
|
- name: Setup Rust cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -102,7 +102,9 @@ jobs:
|
|||||||
cache-save-if: ${{ github.ref == 'refs/heads/main' }}
|
cache-save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --all --exclude e2e_test
|
run: |
|
||||||
|
cargo nextest run --all --exclude e2e_test
|
||||||
|
cargo test --all --doc
|
||||||
|
|
||||||
- name: Check code formatting
|
- name: Check code formatting
|
||||||
run: cargo fmt --all --check
|
run: cargo fmt --all --check
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ check:
|
|||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@echo "🧪 Running tests..."
|
@echo "🧪 Running tests..."
|
||||||
cargo test --all --exclude e2e_test
|
cargo nextest run --all --exclude e2e_test
|
||||||
|
cargo test --all --doc
|
||||||
|
|
||||||
.PHONY: pre-commit
|
.PHONY: pre-commit
|
||||||
pre-commit: fmt clippy check test
|
pre-commit: fmt clippy check test
|
||||||
|
|||||||
Reference in New Issue
Block a user