Skip to content

Commit

Permalink
fix: can set middleware ENV to any now (#72)
Browse files Browse the repository at this point in the history
* fix: can set middleware ENV to any now

* try fix ci

* try fix ci

* try fix ci

* try fix ci

* fix ci

* fix ci

* fix release

* allow Env like HonoEnv
  • Loading branch information
maou-shonen authored Feb 7, 2025
1 parent 14d31ae commit 05ad924
Show file tree
Hide file tree
Showing 6 changed files with 2,204 additions and 1,077 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --no-frozen-lockfile
- run: pnpm install

- run: pnpm run typecheck
- run: pnpm run lint
Expand All @@ -39,13 +40,15 @@ jobs:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --no-frozen-lockfile
- run: pnpm install
- run: pnpm run test

unit-test-edge:
Expand All @@ -54,12 +57,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --no-frozen-lockfile
- run: pnpm install
- run: pnpm run test:edge

jsr-dry-run:
Expand All @@ -68,7 +73,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -83,13 +90,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --no-frozen-lockfile
- run: pnpm install

- run: pnpm run coverage
- name: Upload coverage reports to Codecov
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- run: corepack enable
- uses: pnpm/action-setup@v4
with:
run_install: false
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
"@types/node": "^20.14.2",
"@vitest/coverage-v8": "^2.1.3",
"eslint": "^8.57.0",
"hono": "^4.4.6",
"hono": "^4.6.20",
"husky": "^9.0.11",
"jsr": "^0.13.2",
"lint-staged": "^15.2.7",
"pino": "^9.4.0",
"prettier": "^3.3.2",
"tsup": "^8.1.0",
"typescript": "^5.4.5",
"typescript": "^5.7.3",
"typescript-eslint": "^7.13.0",
"vitest": "^2.1.3"
}
Expand Down
Loading

0 comments on commit 05ad924

Please sign in to comment.