Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lefthook [pre-commit] CI pipeline #10

Merged
merged 11 commits into from
Apr 11, 2024
Prev Previous commit
Next Next commit
chore: remove git from steps, but try to create .git/hooks folder
  • Loading branch information
doniz committed Apr 11, 2024
commit 56d5aa0dc6bdec515d3d3fb3a2fe4f2c3b657ff3
3 changes: 1 addition & 2 deletions .github/workflows/lefthook-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v2
- name: Install Git
run: sudo apt-get install git
- name: Install Package
# yamllint disable-line rule:line-length
run: curl -1sLf 'https://dl.cloudsmith.io/public/evilmartians/lefthook/setup.deb.sh' | sudo -E bash
- name: Install Lefthook
run: sudo apt install lefthook
- name: Install Hooks
run: |
mkdir -p .git/hooks
ls -la
lefthook install
lefthook dump
Expand Down
Loading