diff --git a/.github/workflows/ci-ajv-validator.yml b/.github/workflows/ci-ajv-validator.yml deleted file mode 100644 index be4f5d15..00000000 --- a/.github/workflows/ci-ajv-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-ajv-validator -on: - push: - branches: [main] - paths: - - 'packages/ajv-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/ajv-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/ajv-validator - - run: yarn workspace @hono/ajv-validator build - - run: yarn workspace @hono/ajv-validator publint - - run: yarn workspace @hono/ajv-validator typecheck - - run: yarn eslint packages/ajv-validator - - run: yarn test --coverage --project @hono/ajv-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: ajv-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-arktype-validator.yml b/.github/workflows/ci-arktype-validator.yml deleted file mode 100644 index c8510642..00000000 --- a/.github/workflows/ci-arktype-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-arktype-validator -on: - push: - branches: [main] - paths: - - 'packages/arktype-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/arktype-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/arktype-validator - - run: yarn workspace @hono/arktype-validator build - - run: yarn workspace @hono/arktype-validator publint - - run: yarn workspace @hono/arktype-validator typecheck - - run: yarn eslint packages/arktype-validator - - run: yarn test --coverage --project @hono/arktype-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: arktype-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-auth-js.yml b/.github/workflows/ci-auth-js.yml deleted file mode 100644 index 93dd548a..00000000 --- a/.github/workflows/ci-auth-js.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-auth-js -on: - push: - branches: [main] - paths: - - 'packages/auth-js/**' - pull_request: - branches: ['*'] - paths: - - 'packages/auth-js/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/auth-js - - run: yarn workspace @hono/auth-js build - - run: yarn workspace @hono/auth-js publint - - run: yarn workspace @hono/auth-js typecheck - - run: yarn eslint packages/auth-js - - run: yarn test --coverage --project @hono/auth-js - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: auth-js - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-bun-compress.yml b/.github/workflows/ci-bun-compress.yml deleted file mode 100644 index 48ad32d1..00000000 --- a/.github/workflows/ci-bun-compress.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-bun-compress -on: - push: - branches: [main] - paths: - - 'packages/bun-compress/**' - pull_request: - branches: ['*'] - paths: - - 'packages/bun-compress/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/bun-compress - - run: yarn workspace @hono/bun-compress build - - run: yarn workspace @hono/bun-compress publint - - run: yarn workspace @hono/bun-compress typecheck - - run: yarn eslint packages/bun-compress - - run: yarn test --coverage --project @hono/bun-compress - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: bun-compress - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-bun-transpiler.yml b/.github/workflows/ci-bun-transpiler.yml index 5b0598c7..acdcbe70 100644 --- a/.github/workflows/ci-bun-transpiler.yml +++ b/.github/workflows/ci-bun-transpiler.yml @@ -22,6 +22,7 @@ jobs: - run: yarn workspace @hono/bun-transpiler publint - run: yarn workspace @hono/bun-transpiler typecheck - run: yarn eslint packages/bun-transpiler + - run: yarn prettier --check . !packages packages/bun-transpiler - run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov - uses: codecov/codecov-action@v5 with: diff --git a/.github/workflows/ci-casbin.yml b/.github/workflows/ci-casbin.yml deleted file mode 100644 index 2c0dee1c..00000000 --- a/.github/workflows/ci-casbin.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-casbin -on: - push: - branches: [main] - paths: - - 'packages/casbin/**' - pull_request: - branches: ['*'] - paths: - - 'packages/casbin/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/casbin - - run: yarn workspace @hono/casbin build - - run: yarn workspace @hono/casbin publint - - run: yarn workspace @hono/casbin typecheck - - run: yarn eslint packages/casbin - - run: yarn test --coverage --project @hono/casbin - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: casbin - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-class-validator.yml b/.github/workflows/ci-class-validator.yml deleted file mode 100644 index d2687358..00000000 --- a/.github/workflows/ci-class-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-class-validator -on: - push: - branches: [main] - paths: - - 'packages/class-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/class-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/class-validator - - run: yarn workspace @hono/class-validator build - - run: yarn workspace @hono/class-validator publint - - run: yarn workspace @hono/class-validator typecheck - - run: yarn eslint packages/class-validator - - run: yarn test --coverage --project @hono/class-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: class-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-clerk-auth.yml b/.github/workflows/ci-clerk-auth.yml deleted file mode 100644 index a44f90bb..00000000 --- a/.github/workflows/ci-clerk-auth.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-clerk-auth -on: - push: - branches: [main] - paths: - - 'packages/clerk-auth/**' - pull_request: - branches: ['*'] - paths: - - 'packages/clerk-auth/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/clerk-auth - - run: yarn workspace @hono/clerk-auth build - - run: yarn workspace @hono/clerk-auth publint - - run: yarn workspace @hono/clerk-auth typecheck - - run: yarn eslint packages/clerk-auth - - run: yarn test --coverage --project @hono/clerk-auth - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: clerk-auth - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-cloudflare-access.yml b/.github/workflows/ci-cloudflare-access.yml deleted file mode 100644 index 70ca0b8f..00000000 --- a/.github/workflows/ci-cloudflare-access.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-cloudflare-access -on: - push: - branches: [main] - paths: - - 'packages/cloudflare-access/**' - pull_request: - branches: ['*'] - paths: - - 'packages/cloudflare-access/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/cloudflare-access - - run: yarn workspace @hono/cloudflare-access build - - run: yarn workspace @hono/cloudflare-access publint - - run: yarn workspace @hono/cloudflare-access typecheck - - run: yarn eslint packages/cloudflare-access - - run: yarn test --coverage --project @hono/cloudflare-access - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: cloudflare-access - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-conform-validator.yml b/.github/workflows/ci-conform-validator.yml deleted file mode 100644 index dcbb5f13..00000000 --- a/.github/workflows/ci-conform-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-conform-validator -on: - push: - branches: [main] - paths: - - 'packages/conform-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/conform-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/conform-validator - - run: yarn workspace @hono/conform-validator build - - run: yarn workspace @hono/conform-validator publint - - run: yarn workspace @hono/conform-validator typecheck - - run: yarn eslint packages/conform-validator - - run: yarn test --coverage --project @hono/conform-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: conform-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-effect-validator.yml b/.github/workflows/ci-effect-validator.yml deleted file mode 100644 index 952b0963..00000000 --- a/.github/workflows/ci-effect-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-effect-validator -on: - push: - branches: [main] - paths: - - 'packages/effect-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/effect-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/effect-validator - - run: yarn workspace @hono/effect-validator build - - run: yarn workspace @hono/effect-validator publint - - run: yarn workspace @hono/effect-validator typecheck - - run: yarn eslint packages/effect-validator - - run: yarn test --coverage --project @hono/effect-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: effect-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-esbuild-transpiler.yml b/.github/workflows/ci-esbuild-transpiler.yml deleted file mode 100644 index 6cba94b1..00000000 --- a/.github/workflows/ci-esbuild-transpiler.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-esbuild-transpiler -on: - push: - branches: [main] - paths: - - 'packages/esbuild-transpiler/**' - pull_request: - branches: ['*'] - paths: - - 'packages/esbuild-transpiler/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler - - run: yarn workspace @hono/esbuild-transpiler build - - run: yarn workspace @hono/esbuild-transpiler publint - - run: yarn workspace @hono/esbuild-transpiler typecheck - - run: yarn eslint packages/esbuild-transpiler - - run: yarn test --coverage --project @hono/esbuild-transpiler - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: esbuild-transpiler - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-event-emitter.yml b/.github/workflows/ci-event-emitter.yml deleted file mode 100644 index faa70372..00000000 --- a/.github/workflows/ci-event-emitter.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-event-emitter -on: - push: - branches: [main] - paths: - - 'packages/event-emitter/**' - pull_request: - branches: ['*'] - paths: - - 'packages/event-emitter/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/event-emitter - - run: yarn workspace @hono/event-emitter build - - run: yarn workspace @hono/event-emitter publint - - run: yarn workspace @hono/event-emitter typecheck - - run: yarn eslint packages/event-emitter - - run: yarn test --coverage --project @hono/event-emitter - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: event-emitter - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-firebase-auth.yml b/.github/workflows/ci-firebase-auth.yml deleted file mode 100644 index 99a6c0b3..00000000 --- a/.github/workflows/ci-firebase-auth.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-firebase-auth -on: - push: - branches: [main] - paths: - - 'packages/firebase-auth/**' - pull_request: - branches: ['*'] - paths: - - 'packages/firebase-auth/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/firebase-auth - - run: yarn workspace @hono/firebase-auth build - - run: yarn workspace @hono/firebase-auth publint - - run: yarn workspace @hono/firebase-auth typecheck - - run: yarn eslint packages/firebase-auth - - run: yarn test --coverage --project @hono/firebase-auth - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: firebase-auth - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-graphql-server.yml b/.github/workflows/ci-graphql-server.yml deleted file mode 100644 index 407a1a81..00000000 --- a/.github/workflows/ci-graphql-server.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-graphql-server -on: - push: - branches: [main] - paths: - - 'packages/graphql-server/**' - pull_request: - branches: ['*'] - paths: - - 'packages/graphql-server/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/graphql-server - - run: yarn workspace @hono/graphql-server build - - run: yarn workspace @hono/graphql-server publint - - run: yarn workspace @hono/graphql-server typecheck - - run: yarn eslint packages/graphql-server - - run: yarn test --coverage --project @hono/graphql-server - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: graphql-server - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-hello.yml b/.github/workflows/ci-hello.yml deleted file mode 100644 index 59b40800..00000000 --- a/.github/workflows/ci-hello.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-hello -on: - push: - branches: [main] - paths: - - 'packages/hello/**' - pull_request: - branches: ['*'] - paths: - - 'packages/hello/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/hello - - run: yarn workspace @hono/hello build - - run: yarn workspace @hono/hello publint - - run: yarn workspace @hono/hello typecheck - - run: yarn eslint packages/hello - - run: yarn test --coverage --project @hono/hello - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: hello - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-medley-router.yml b/.github/workflows/ci-medley-router.yml deleted file mode 100644 index 26de4b6b..00000000 --- a/.github/workflows/ci-medley-router.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-medley-router -on: - push: - branches: [main] - paths: - - 'packages/medley-router/**' - pull_request: - branches: ['*'] - paths: - - 'packages/medley-router/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/medley-router - - run: yarn workspace @hono/medley-router build - - run: yarn workspace @hono/medley-router publint - - run: yarn workspace @hono/medley-router typecheck - - run: yarn eslint packages/medley-router - - run: yarn test --coverage --project @hono/medley-router - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: medley-router - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-node-ws.yml b/.github/workflows/ci-node-ws.yml deleted file mode 100644 index 7ea21681..00000000 --- a/.github/workflows/ci-node-ws.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-node-ws -on: - push: - branches: [main] - paths: - - 'packages/node-ws/**' - pull_request: - branches: ['*'] - paths: - - 'packages/node-ws/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/node-ws - - run: yarn workspace @hono/node-ws build - - run: yarn workspace @hono/node-ws publint - - run: yarn workspace @hono/node-ws typecheck - - run: yarn eslint packages/node-ws - - run: yarn test --coverage --project @hono/node-ws - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: node-ws - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-oauth-providers.yml b/.github/workflows/ci-oauth-providers.yml deleted file mode 100644 index fe867e38..00000000 --- a/.github/workflows/ci-oauth-providers.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-oauth-providers -on: - push: - branches: [main] - paths: - - 'packages/oauth-providers/**' - pull_request: - branches: ['*'] - paths: - - 'packages/oauth-providers/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/oauth-providers - - run: yarn workspace @hono/oauth-providers build - - run: yarn workspace @hono/oauth-providers publint - - run: yarn workspace @hono/oauth-providers typecheck - - run: yarn eslint packages/oauth-providers - - run: yarn test --coverage --project @hono/oauth-providers - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: oauth-providers - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-oidc-auth.yml b/.github/workflows/ci-oidc-auth.yml deleted file mode 100644 index 89d6d2e0..00000000 --- a/.github/workflows/ci-oidc-auth.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-oidc-auth -on: - push: - branches: [main] - paths: - - 'packages/oidc-auth/**' - pull_request: - branches: ['*'] - paths: - - 'packages/oidc-auth/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/oidc-auth - - run: yarn workspace @hono/oidc-auth build - - run: yarn workspace @hono/oidc-auth publint - - run: yarn workspace @hono/oidc-auth typecheck - - run: yarn eslint packages/oidc-auth - - run: yarn test --coverage --project @hono/oidc-auth - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: oidc-auth - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-otel.yml b/.github/workflows/ci-otel.yml deleted file mode 100644 index d541213d..00000000 --- a/.github/workflows/ci-otel.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-otel -on: - push: - branches: [main] - paths: - - 'packages/otel/**' - pull_request: - branches: ['*'] - paths: - - 'packages/otel/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/otel - - run: yarn workspace @hono/otel build - - run: yarn workspace @hono/otel publint - - run: yarn workspace @hono/otel typecheck - - run: yarn eslint packages/otel - - run: yarn test --coverage --project @hono/otel - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: otel - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-prometheus.yml b/.github/workflows/ci-prometheus.yml deleted file mode 100644 index d32618ba..00000000 --- a/.github/workflows/ci-prometheus.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-prometheus -on: - push: - branches: [main] - paths: - - 'packages/prometheus/**' - pull_request: - branches: ['*'] - paths: - - 'packages/prometheus/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/prometheus - - run: yarn workspace @hono/prometheus build - - run: yarn workspace @hono/prometheus publint - - run: yarn workspace @hono/prometheus typecheck - - run: yarn eslint packages/prometheus - - run: yarn test --coverage --project @hono/prometheus - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: prometheus - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-qwik-city.yml b/.github/workflows/ci-qwik-city.yml deleted file mode 100644 index b3337bad..00000000 --- a/.github/workflows/ci-qwik-city.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-qwik-city -on: - push: - branches: [main] - paths: - - 'packages/qwik-city/**' - pull_request: - branches: ['*'] - paths: - - 'packages/qwik-city/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/qwik-city - - run: yarn workspace @hono/qwik-city build - - run: yarn workspace @hono/qwik-city publint - - run: yarn workspace @hono/qwik-city typecheck - - run: yarn eslint packages/qwik-city - # - run: yarn test --coverage --project @hono/qwik-city - # - uses: codecov/codecov-action@v5 - # with: - # fail_ci_if_error: true - # directory: ./coverage - # flags: qwik-city - # env: - # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-react-compat.yml b/.github/workflows/ci-react-compat.yml deleted file mode 100644 index dbebfc37..00000000 --- a/.github/workflows/ci-react-compat.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-react-compat -on: - push: - branches: [main] - paths: - - 'packages/react-compat/**' - pull_request: - branches: ['*'] - paths: - - 'packages/react-compat/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/react-compat - - run: yarn workspace @hono/react-compat build - - run: yarn workspace @hono/react-compat publint - - run: yarn workspace @hono/react-compat typecheck - - run: yarn eslint packages/react-compat - # - run: yarn test --coverage --project @hono/react-compat - # - uses: codecov/codecov-action@v5 - # with: - # fail_ci_if_error: true - # directory: ./coverage - # flags: react-compat - # env: - # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-react-renderer.yml b/.github/workflows/ci-react-renderer.yml deleted file mode 100644 index 00fabc2e..00000000 --- a/.github/workflows/ci-react-renderer.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-react-renderer -on: - push: - branches: [main] - paths: - - 'packages/react-renderer/**' - pull_request: - branches: ['*'] - paths: - - 'packages/react-renderer/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/react-renderer - - run: yarn workspace @hono/react-renderer build - - run: yarn workspace @hono/react-renderer publint - - run: yarn workspace @hono/react-renderer typecheck - - run: yarn eslint packages/react-renderer - - run: yarn test --coverage --project @hono/react-renderer - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: react-renderer - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-sentry.yml b/.github/workflows/ci-sentry.yml deleted file mode 100644 index 9eaf4ed8..00000000 --- a/.github/workflows/ci-sentry.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-sentry -on: - push: - branches: [main] - paths: - - 'packages/sentry/**' - pull_request: - branches: ['*'] - paths: - - 'packages/sentry/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/sentry - - run: yarn workspace @hono/sentry build - - run: yarn workspace @hono/sentry publint - - run: yarn workspace @hono/sentry typecheck - - run: yarn eslint packages/sentry - - run: yarn test --coverage --project @hono/sentry - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: sentry - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-standard-validator.yml b/.github/workflows/ci-standard-validator.yml deleted file mode 100644 index 3233f01c..00000000 --- a/.github/workflows/ci-standard-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-standard-validator -on: - push: - branches: [main] - paths: - - 'packages/standard-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/standard-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/standard-validator - - run: yarn workspace @hono/standard-validator build - - run: yarn workspace @hono/standard-validator publint - - run: yarn workspace @hono/standard-validator typecheck - - run: yarn eslint packages/standard-validator - - run: yarn test --coverage --project @hono/standard-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: standard-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-swagger-editor.yml b/.github/workflows/ci-swagger-editor.yml deleted file mode 100644 index 5326fc59..00000000 --- a/.github/workflows/ci-swagger-editor.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-swagger-editor -on: - push: - branches: [main] - paths: - - 'packages/swagger-editor/**' - pull_request: - branches: ['*'] - paths: - - 'packages/swagger-editor/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/swagger-editor - - run: yarn workspace @hono/swagger-editor build - - run: yarn workspace @hono/swagger-editor publint - - run: yarn workspace @hono/swagger-editor typecheck - - run: yarn eslint packages/swagger-editor - - run: yarn test --coverage --project @hono/swagger-editor - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: swagger-editor - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-swagger-ui.yml b/.github/workflows/ci-swagger-ui.yml deleted file mode 100644 index a7c3693c..00000000 --- a/.github/workflows/ci-swagger-ui.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-swagger-ui -on: - push: - branches: [main] - paths: - - 'packages/swagger-ui/**' - pull_request: - branches: ['*'] - paths: - - 'packages/swagger-ui/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/swagger-ui - - run: yarn workspace @hono/swagger-ui build - - run: yarn workspace @hono/swagger-ui publint - - run: yarn workspace @hono/swagger-ui typecheck - - run: yarn eslint packages/swagger-ui - - run: yarn test --coverage --project @hono/swagger-ui - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: swagger-ui - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-trpc-server.yml b/.github/workflows/ci-trpc-server.yml deleted file mode 100644 index ef803837..00000000 --- a/.github/workflows/ci-trpc-server.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-trpc-server -on: - push: - branches: [main] - paths: - - 'packages/trpc-server/**' - pull_request: - branches: ['*'] - paths: - - 'packages/trpc-server/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/trpc-server - - run: yarn workspace @hono/trpc-server build - - run: yarn workspace @hono/trpc-server publint - - run: yarn workspace @hono/trpc-server typecheck - - run: yarn eslint packages/trpc-server - - run: yarn test --coverage --project @hono/trpc-server - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: trpc-server - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-tsyringe.yml b/.github/workflows/ci-tsyringe.yml deleted file mode 100644 index d4c76c08..00000000 --- a/.github/workflows/ci-tsyringe.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-tsyringe -on: - push: - branches: [main] - paths: - - 'packages/tsyringe/**' - pull_request: - branches: ['*'] - paths: - - 'packages/tsyringe/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/tsyringe - - run: yarn workspace @hono/tsyringe build - - run: yarn workspace @hono/tsyringe publint - - run: yarn workspace @hono/tsyringe typecheck - - run: yarn eslint packages/tsyringe - - run: yarn test --coverage --project @hono/tsyringe - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: tsyringe - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-typebox-validator.yml b/.github/workflows/ci-typebox-validator.yml deleted file mode 100644 index 5f9d9f46..00000000 --- a/.github/workflows/ci-typebox-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-typebox-validator -on: - push: - branches: [main] - paths: - - 'packages/typebox-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/typebox-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/typebox-validator - - run: yarn workspace @hono/typebox-validator build - - run: yarn workspace @hono/typebox-validator publint - - run: yarn workspace @hono/typebox-validator typecheck - - run: yarn eslint packages/typebox-validator - - run: yarn test --coverage --project @hono/typebox-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: typebox-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-typia-validator.yml b/.github/workflows/ci-typia-validator.yml deleted file mode 100644 index af99d217..00000000 --- a/.github/workflows/ci-typia-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-typia-validator -on: - push: - branches: [main] - paths: - - 'packages/typia-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/typia-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/typia-validator - - run: yarn workspace @hono/typia-validator build - - run: yarn workspace @hono/typia-validator publint - - run: yarn workspace @hono/typia-validator typecheck - - run: yarn eslint packages/typia-validator - - run: yarn test --coverage --project @hono/typia-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: typia-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-valibot-validator.yml b/.github/workflows/ci-valibot-validator.yml deleted file mode 100644 index 2cca0a42..00000000 --- a/.github/workflows/ci-valibot-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-valibot-validator -on: - push: - branches: [main] - paths: - - 'packages/valibot-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/valibot-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/valibot-validator - - run: yarn workspace @hono/valibot-validator build - - run: yarn workspace @hono/valibot-validator publint - - run: yarn workspace @hono/valibot-validator typecheck - - run: yarn eslint packages/valibot-validator - - run: yarn test --coverage --project @hono/valibot-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: valibot-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-zod-openapi.yml b/.github/workflows/ci-zod-openapi.yml deleted file mode 100644 index 93b57402..00000000 --- a/.github/workflows/ci-zod-openapi.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-zod-openapi -on: - push: - branches: [main] - paths: - - 'packages/zod-openapi/**' - pull_request: - branches: ['*'] - paths: - - 'packages/zod-openapi/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/zod-openapi - - run: yarn workspaces foreach --topological --recursive --from @hono/zod-openapi run build - - run: yarn workspace @hono/zod-openapi publint - - run: yarn workspace @hono/zod-openapi typecheck - - run: yarn eslint packages/zod-openapi - - run: yarn test --coverage --project @hono/zod-openapi - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: zod-openapi - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci-zod-validator.yml b/.github/workflows/ci-zod-validator.yml deleted file mode 100644 index 14772e3f..00000000 --- a/.github/workflows/ci-zod-validator.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: ci-zod-validator -on: - push: - branches: [main] - paths: - - 'packages/zod-validator/**' - pull_request: - branches: ['*'] - paths: - - 'packages/zod-validator/**' - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn workspaces focus hono-middleware @hono/zod-validator - - run: yarn workspace @hono/zod-validator build - - run: yarn workspace @hono/zod-validator publint - - run: yarn workspace @hono/zod-validator typecheck - - run: yarn eslint packages/zod-validator - - run: yarn test --coverage --project @hono/zod-validator - - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - directory: ./coverage - flags: zod-validator - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1c8b835f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,74 @@ +name: ci +on: + push: + branches: [main] + pull_request: + branches: ['*'] + +jobs: + what-changed: + runs-on: ubuntu-latest + outputs: + packages: ${{ steps.set-packages.outputs.packages }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Get changed packages + id: set-packages + run: | + exclude=( + "hono-middleware" + "@hono/bun-transpiler" + ); + changed=$(yarn workspaces list --json --since | jq -nc --arg exclude "$exclude" '[inputs.name | select(inside($exclude) | not) | sub("@hono/"; "")]') + echo "packages=${changed}" >> $GITHUB_OUTPUT + + build: + runs-on: ubuntu-latest + needs: [what-changed] + if: ${{ needs.what-changed.outputs.packages != '[]' }} + strategy: + matrix: + package: ${{ fromJSON(needs.what-changed.outputs.packages) }} + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }} + - run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run build + - run: yarn workspace @hono/${{ matrix.package }} publint + - run: yarn workspace @hono/${{ matrix.package }} typecheck + - run: yarn eslint packages/${{ matrix.package }} + - run: yarn prettier --check . !packages packages/${{ matrix.package }} + + test: + runs-on: ubuntu-latest + needs: [what-changed] + if: ${{ needs.what-changed.outputs.packages != '[]' }} + strategy: + matrix: + package: ${{ fromJSON(needs.what-changed.outputs.packages) }} + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }} + - run: yarn test --coverage --project @hono/${{ matrix.package }} + id: test + if: ${{ matrix.package != 'qwik-city' }} + - uses: codecov/codecov-action@v5 + if: ${{ matrix.package != 'qwik-city' }} + with: + fail_ci_if_error: true + directory: ./coverage + flags: ${{ matrix.package }} + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml deleted file mode 100644 index 8c966f2e..00000000 --- a/.github/workflows/codestyle.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: codestyle -on: - push: - branches: [main] - pull_request: - branches: ['*'] - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - - run: yarn - - run: yarn format - - run: yarn lint diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..85bea64b --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +.changeset +.vscode +.yarn \ No newline at end of file diff --git a/packages/ajv-validator/package.json b/packages/ajv-validator/package.json index 3d874b3c..8d83cc19 100644 --- a/packages/ajv-validator/package.json +++ b/packages/ajv-validator/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "^0.17.4", - "ajv": ">=8.12.0", + "ajv": "^8.12.0", "publint": "^0.3.9", "tsup": "^8.4.0", "typescript": "^5.8.2", diff --git a/yarn.lock b/yarn.lock index 18b136f1..f844c316 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1799,7 +1799,7 @@ __metadata: resolution: "@hono/ajv-validator@workspace:packages/ajv-validator" dependencies: "@arethetypeswrong/cli": "npm:^0.17.4" - ajv: "npm:>=8.12.0" + ajv: "npm:^8.12.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" typescript: "npm:^5.8.2" @@ -4501,18 +4501,6 @@ __metadata: languageName: node linkType: hard -"ajv@npm:>=8.12.0, ajv@npm:^8.17.1": - version: 8.17.1 - resolution: "ajv@npm:8.17.1" - dependencies: - fast-deep-equal: "npm:^3.1.3" - fast-uri: "npm:^3.0.1" - json-schema-traverse: "npm:^1.0.0" - require-from-string: "npm:^2.0.2" - checksum: ec3ba10a573c6b60f94639ffc53526275917a2df6810e4ab5a6b959d87459f9ef3f00d5e7865b82677cb7d21590355b34da14d1d0b9c32d75f95a187e76fff35 - languageName: node - linkType: hard - "ajv@npm:^6.12.4": version: 6.12.6 resolution: "ajv@npm:6.12.6" @@ -4537,6 +4525,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:^8.12.0, ajv@npm:^8.17.1": + version: 8.17.1 + resolution: "ajv@npm:8.17.1" + dependencies: + fast-deep-equal: "npm:^3.1.3" + fast-uri: "npm:^3.0.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + checksum: ec3ba10a573c6b60f94639ffc53526275917a2df6810e4ab5a6b959d87459f9ef3f00d5e7865b82677cb7d21590355b34da14d1d0b9c32d75f95a187e76fff35 + languageName: node + linkType: hard + "ansi-align@npm:^3.0.0": version: 3.0.1 resolution: "ansi-align@npm:3.0.1"