Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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 ':'
Loading