Skip to content

Commit

Permalink
Merge pull request #10 from boozt-platform/issue-9-add-lefthook-ci-pi…
Browse files Browse the repository at this point in the history
…peline

feat: add lefthook [pre-commit] CI pipeline
  • Loading branch information
doniz authored Apr 11, 2024
2 parents a847797 + 36f3002 commit ec655b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/lefthook-precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: Copyright Boozt Fashion, AB
# SPDX-License-Identifier: MIT
---
name: Lefthook [pre-commit]
"on": [pull_request]
jobs:
lefthook:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- 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 && lefthook install
- name: Run Lefthook
run: lefthook run pre-commit
2 changes: 1 addition & 1 deletion .lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT
---
remotes:
- git_url: git@github.com:boozt-platform/lefthook
- git_url: https://github.com/boozt-platform/lefthook.git
ref: v1.3.0
configs:
# lint commit messages based by the conventional commits
Expand Down

0 comments on commit ec655b7

Please sign in to comment.