Skip to content

Commit

Permalink
chore: git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
marthendalnunes committed Nov 25, 2024
1 parent f06f779 commit 59c4ebc
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Verify

on:
pull_request:
workflow_dispatch:

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Check
run: pnpm check

types:
name: Types
needs: check
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Check Types
run: pnpm check:types
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.2.0
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=20"
"node": ">=22"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": [
"pnpm format --"
]
"*": ["pnpm format --"]
}
}

0 comments on commit 59c4ebc

Please sign in to comment.