Skip to content

Commit

Permalink
chore(ci): add pre-commit hooks to run in CI to duplicate validation (#…
Browse files Browse the repository at this point in the history
…5943)

* chore(ci): add pre-commit hooks to run with CI too

* chore: test commit to run CI checks
  • Loading branch information
siddsriv committed Mar 28, 2024
1 parent 81bf8d8 commit cddf8f7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pre-commit-hooks.yml
@@ -0,0 +1,28 @@
name: pre-commit hooks

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run-pre-commit-hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'

- name: install dependencies
run: yarn install --frozen-lockfile

- name: run pre-commit hooks
run: |
yarn lint-staged
yarn lint:versions
yarn lint:dependencies

0 comments on commit cddf8f7

Please sign in to comment.