feat: setup CI
This commit is contained in:
parent
cb8d3d21e8
commit
7bc358b446
2 changed files with 34 additions and 0 deletions
6
.woodpecker.yml
Normal file
6
.woodpecker.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
pipeline:
|
||||||
|
backend:
|
||||||
|
image: rust
|
||||||
|
commands:
|
||||||
|
- make check
|
||||||
|
- make lint
|
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
default: ## Build app in debug mode
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
check: ## Check for syntax errors on all workspaces
|
||||||
|
cargo check --workspace --tests --all-features
|
||||||
|
|
||||||
|
clean: ## Delete build artifacts
|
||||||
|
@cargo clean
|
||||||
|
|
||||||
|
coverage: ## Generate code coverage report in HTML format
|
||||||
|
cargo tarpaulin -t 1200 --out Html
|
||||||
|
|
||||||
|
doc: ## Generate documentation
|
||||||
|
#yarn doc
|
||||||
|
cargo doc --no-deps --workspace --all-features
|
||||||
|
|
||||||
|
env: ## Setup development environtment
|
||||||
|
cargo fetch
|
||||||
|
|
||||||
|
lint: ## Lint codebase
|
||||||
|
cargo fmt -v --all -- --emit files
|
||||||
|
cargo clippy --workspace --tests --all-features
|
||||||
|
|
||||||
|
xml-test-coverage: ## Generate code coverage report in XML format
|
||||||
|
cargo tarpaulin -t 1200 --out Xml
|
||||||
|
|
||||||
|
help: ## Prints help for targets with comments
|
||||||
|
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
Loading…
Reference in a new issue