Skip to content

Commit cddf8f7

Browse files
authored
chore(ci): add pre-commit hooks to run in CI to duplicate validation (#5943)
* chore(ci): add pre-commit hooks to run with CI too * chore: test commit to run CI checks
1 parent 81bf8d8 commit cddf8f7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pre-commit hooks
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
run-pre-commit-hooks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '16'
19+
cache: 'yarn'
20+
21+
- name: install dependencies
22+
run: yarn install --frozen-lockfile
23+
24+
- name: run pre-commit hooks
25+
run: |
26+
yarn lint-staged
27+
yarn lint:versions
28+
yarn lint:dependencies

0 commit comments

Comments
 (0)