mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-07 03:55:23 +00:00
ci: replace manual convco check and git hook by a dedicated ci step
This commit is contained in:
parent
ed28da325f
commit
7317765f19
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -46,3 +46,10 @@ jobs:
|
||||
components: clippy
|
||||
- name: Clippy Check
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
conventional-commits:
|
||||
name: Conventional Commits
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: webiny/action-conventional-commits@v1.3.0
|
||||
|
8
Makefile
8
Makefile
@ -6,10 +6,6 @@ setup:
|
||||
@mkdir -p .git/hooks
|
||||
@echo "make fix" > .git/hooks/pre-commit
|
||||
@chmod +x .git/hooks/pre-commit
|
||||
@echo "installing convco..."
|
||||
@cargo install convco
|
||||
@echo "make check-commits" > .git/hooks/pre-push
|
||||
@chmod +x .git/hooks/pre-push
|
||||
@echo "Done"
|
||||
|
||||
clean:
|
||||
@ -62,7 +58,3 @@ publish:
|
||||
update-changelog:
|
||||
@echo "Updating changelog"
|
||||
@git cliff -o CHANGELOG.md
|
||||
|
||||
check-commits:
|
||||
@echo "Checking commits (see https://www.conventionalcommits.org/)"
|
||||
@convco check origin/main..HEAD
|
||||
|
Loading…
x
Reference in New Issue
Block a user