mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-08 20:45:24 +00:00
ci: replace manual convco check and git hook by a dedicated ci step (#376)
This commit is contained in:
parent
ed28da325f
commit
fcf4b35272
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -46,3 +46,10 @@ jobs:
|
|||||||
components: clippy
|
components: clippy
|
||||||
- name: Clippy Check
|
- name: Clippy Check
|
||||||
run: cargo clippy -- -D warnings
|
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
|
@mkdir -p .git/hooks
|
||||||
@echo "make fix" > .git/hooks/pre-commit
|
@echo "make fix" > .git/hooks/pre-commit
|
||||||
@chmod +x .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"
|
@echo "Done"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -62,7 +58,3 @@ publish:
|
|||||||
update-changelog:
|
update-changelog:
|
||||||
@echo "Updating changelog"
|
@echo "Updating changelog"
|
||||||
@git cliff -o CHANGELOG.md
|
@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