Skip to content

Commit c07215b

Browse files
committed
add tests
1 parent d2bf0ad commit c07215b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/code-health.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,21 @@ jobs:
136136
uses: coverallsapp/github-action@v2.3.6
137137
with:
138138
file: coverage/lcov.info
139+
140+
run-git-hooks:
141+
name: Run git hooks
142+
if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
143+
runs-on: ubuntu-latest
144+
steps:
145+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
146+
- uses: actions/checkout@v5
147+
with:
148+
persist-credentials: false
149+
- uses: actions/setup-node@v6
150+
with:
151+
node-version-file: package.json
152+
cache: "npm"
153+
- name: Install dependencies
154+
run: npm ci
155+
- name: Run pre-commit and pre-push hooks
156+
run: ./.husky/_/pre-commit && ./.husky/_/pre-push

0 commit comments

Comments
 (0)