From 4e56299becdc49953fba1d1df78d25fc64cc20d8 Mon Sep 17 00:00:00 2001 From: devUnixx Date: Wed, 29 Apr 2026 03:00:49 +0000 Subject: [PATCH] feat(devops): add audit and help Makefile targets, use make in CI (#43) --- .github/workflows/ci.yml | 6 +++--- Makefile | 20 +++++++++++++++++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a45bfbc..7d79948 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,13 +34,13 @@ jobs: restore-keys: ${{ runner.os }}-cargo- - name: Check formatting - run: cargo fmt --check + run: make fmt-check - name: Clippy - run: cargo clippy --all-targets -- -D warnings + run: make lint - name: Test - run: cargo test + run: make test coverage: name: Coverage diff --git a/Makefile b/Makefile index 810dbdd..0fe3121 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,49 @@ -.PHONY: build test fmt fmt-check lint deny clean deploy-local deploy-testnet +.PHONY: build test fmt fmt-check lint deny audit clean deploy-local deploy-testnet help +## build: Compile all contracts build: stellar contract build +## test: Run all tests test: cargo test +## fmt: Format source code fmt: cargo fmt +## fmt-check: Check formatting without modifying files fmt-check: cargo fmt --check +## lint: Run Clippy linter (warnings as errors) lint: cargo clippy --all-targets -- -D warnings +## check: Type-check without building check: cargo check --all +## deny: Check dependency licenses and advisories deny: cargo deny check +## audit: Run cargo-audit for known vulnerability advisories +audit: + cargo audit + +## clean: Remove build artifacts clean: cargo clean +## deploy-local: Deploy contracts to local network deploy-local: ./scripts/deploy-local.sh +## deploy-testnet: Deploy contracts to Stellar testnet deploy-testnet: ./scripts/deploy-testnet.sh + +## help: Show this help message +help: + @grep -E '^## ' Makefile | sed 's/^## //' | column -t -s ':'