Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
ci: run lefthook pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 19, 2023
1 parent 7f43dd5 commit 2462ff4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: | # setup-go handles Go
~/.cache/wrun
~/.npm
key: lint-${{ hashFiles('.lefthook.yaml') }}
- uses: actions/setup-go@v4
with:
go-version: ">=1.21"
check-latest: true
- name: Install dependencies
run: |
go build -v .
- name: Run lefthook pre-commit
run: |
export PATH=$PWD:$PATH LEFTHOOK_QUIET=meta,execution WRUN_VERBOSE=true
npm exec --yes -- lefthook run pre-commit --all-files --force --no-tty
test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2462ff4

Please sign in to comment.