mirror of
https://github.com/imjasonh/krust
synced 2026-07-18 23:16:03 +00:00
ci: make builds and tests always verbose for better debugging
- Update Makefile to use --verbose flag by default for build and test targets - Simplify CI workflow to use standard make targets instead of verbose variants - Improve debugging visibility in CI by showing detailed cargo output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5444d76d83
commit
9edb878ca5
2 changed files with 5 additions and 17 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -44,9 +44,9 @@ jobs:
|
||||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- run: make verify-cross-compile
|
- run: make verify-cross-compile
|
||||||
- run: make build-verbose
|
- run: make build
|
||||||
- run: make test-verbose
|
- run: make test
|
||||||
- run: make test-e2e-verbose
|
- run: make test-e2e
|
||||||
- run: make run-built-image
|
- run: make run-built-image
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
|
|
|
||||||
16
Makefile
16
Makefile
|
|
@ -5,10 +5,6 @@ TEST_FLAGS := -- --test-threads=1
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
build:
|
build:
|
||||||
cargo build
|
|
||||||
|
|
||||||
# Build verbosely
|
|
||||||
build-verbose:
|
|
||||||
cargo build --verbose
|
cargo build --verbose
|
||||||
|
|
||||||
# Setup cargo config for cross-compilation
|
# Setup cargo config for cross-compilation
|
||||||
|
|
@ -56,21 +52,13 @@ run:
|
||||||
# Run all tests
|
# Run all tests
|
||||||
test: test-unit test-e2e
|
test: test-unit test-e2e
|
||||||
|
|
||||||
# Run all tests verbosely (for CI)
|
|
||||||
test-verbose:
|
|
||||||
cargo test --verbose $(TEST_FLAGS)
|
|
||||||
|
|
||||||
# Run unit tests only
|
# Run unit tests only
|
||||||
test-unit:
|
test-unit:
|
||||||
cargo test --lib --bins $(TEST_FLAGS)
|
cargo test --verbose --lib --bins $(TEST_FLAGS)
|
||||||
|
|
||||||
# Run e2e tests only
|
# Run e2e tests only
|
||||||
test-e2e:
|
test-e2e:
|
||||||
cargo test --test '*' $(TEST_FLAGS)
|
cargo test --verbose --test '*' $(TEST_FLAGS)
|
||||||
|
|
||||||
# Run e2e tests verbosely (for CI)
|
|
||||||
test-e2e-verbose:
|
|
||||||
cargo test --test '*' --verbose $(TEST_FLAGS)
|
|
||||||
|
|
||||||
# Clean build artifacts
|
# Clean build artifacts
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue