ci(release): setup
This commit is contained in:
5
CHANGELOG.md
Normal file
5
CHANGELOG.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## [0.1.0](https://github.com/ivangabriele/mistralai-client-rs/compare/7d3b438d16e9936591b6454525968c5c2cdfd6ad...v0.1.0) (2024-03-03)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- add chat completion without streaming ([7d3b438](https://github.com/ivangabriele/mistralai-client-rs/commit/7d3b438d16e9936591b6454525968c5c2cdfd6ad))
|
||||||
20
Makefile
20
Makefile
@@ -1,6 +1,26 @@
|
|||||||
|
.PHONY: test
|
||||||
|
|
||||||
|
define RELEASE_TEMPLATE
|
||||||
|
conventional-changelog -p conventionalcommits -i CHANGELOG.md -s
|
||||||
|
git add .
|
||||||
|
git commit -m "docs(changelog): update"
|
||||||
|
git push origin HEAD
|
||||||
|
cargo release $(1)
|
||||||
|
git push origin HEAD --tags
|
||||||
|
endef
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cargo test --no-fail-fast
|
cargo test --no-fail-fast
|
||||||
test-cover:
|
test-cover:
|
||||||
cargo tarpaulin --frozen --no-fail-fast --out Xml --skip-clean
|
cargo tarpaulin --frozen --no-fail-fast --out Xml --skip-clean
|
||||||
test-watch:
|
test-watch:
|
||||||
cargo watch -x "test -- --nocapture"
|
cargo watch -x "test -- --nocapture"
|
||||||
|
|
||||||
|
release-patch:
|
||||||
|
$(call RELEASE_TEMPLATE,patch)
|
||||||
|
|
||||||
|
release-minor:
|
||||||
|
$(call RELEASE_TEMPLATE,minor)
|
||||||
|
|
||||||
|
release-major:
|
||||||
|
$(call RELEASE_TEMPLATE,major)
|
||||||
|
|||||||
1
release.toml
Normal file
1
release.toml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
allow-branch = ["main"]
|
||||||
Reference in New Issue
Block a user