feat: add lefthook [pre-commit] CI pipeline #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: read | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Lefthook | |
# yamllint disable-line rule:line-length | |
run: curl -sfL https://raw.githubusercontent.com/evilmartians/lefthook/master/install.sh | sh | |
- name: Run Lefthook | |
run: lefthook run pre-commit |