Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
71 changes: 71 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: 🚀 Validation Pipeline
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
actions: write
contents: read
# Required to put a comment into the pull-request
pull-requests: write
jobs:
# lint:
# name: ⬣ Biome lint
# runs-on: ubuntu-latest
# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v4
# - name: Setup Biome
# uses: biomejs/setup-biome@v2
# - name: Run Biome
# run: biome ci .

typecheck:
name: 🔎 Type check
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 🔎 Type check
run: npm run typecheck

vitest:
name: ⚡ Unit Tests
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Install dotenv cli
run: npm install -g dotenv-cli
- name: ⚡ Run vitest
run: npm run test
# - name: "Report Coverage"
# Only works if you set `reportOnFailure: true` in your vite config as specified above
# if: always()
# uses: davelosert/vitest-coverage-report-action@v2

15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remix-hook-form",
"version": "6.1.3",
"version": "6.2.0",
"description": "Utility wrapper around react-hook-form for use with react-router v7+",
"type": "module",
"main": "./dist/index.cjs",
Expand Down Expand Up @@ -37,7 +37,7 @@
"vite": "npm run build --watch -m development",
"prepublishOnly": "npm run build",
"test": "vitest run",
"tsc": "tsc",
"typecheck": "tsc",
"validate": "npm run lint && npm run tsc && npm run test",
"lint": "eslint \"src/**/*.+(ts|tsx)\"",
"lint:fix": "npm run lint -- --fix",
Expand All @@ -55,6 +55,9 @@
"react-router v7",
"react-hook-form",
"hooks",
"remix",
"remix react-hook-form",
"react-router react-hook-form",
"forms"
],
"author": "Alem Tuzlak",
Expand All @@ -66,7 +69,7 @@
"peerDependencies": {
"react": "^18.2.0 || ^19.0.0",
"react-dom": "^18.2.0 || ^19.0.0",
"react-hook-form": "^7.51.0",
"react-hook-form": "^7.55.0",
"react-router": ">=7.0.0"
},
"readme": "https://github.com/forge42dev/remix-hook-form#readme",
Expand Down
1 change: 1 addition & 0 deletions test-apps/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^7.0.1",
"react-hook-form": "7.55.0",
"remix-hook-form": "*"
},
"devDependencies": {
Expand Down