build: add git pre-push hooks using cargo-husky (#274)

Fixes https://github.com/tui-rs-revival/ratatui/issues/214
- add cargo-husky to dev-deps
- create hook
- update `CONTRIBUTING.md`
- ensure that the hook is not installed in CI
This commit is contained in:
SLASHLogin
2023-06-24 08:03:31 +02:00
committed by GitHub
parent b808305507
commit 669a4d5652
4 changed files with 23 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ jobs:
run: cargo make ci
env:
RUST_BACKTRACE: full
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
lint:
runs-on: ubuntu-latest
@@ -71,6 +72,8 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo llvm-cov
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
env:
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with: