ci: run eslint in each workflow (#1083)
parent
b70735cc6c
commit
9a536e6abb
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/ajv-validator
|
||||
- run: yarn test --coverage --project @hono/ajv-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/arktype-validator
|
||||
- run: yarn test --coverage --project @hono/arktype-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/auth-js
|
||||
- run: yarn test --coverage --project @hono/auth-js
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
|
||||
- run: yarn workspace @hono/bun-transpiler build
|
||||
- run: yarn workspace @hono/bun-transpiler publint
|
||||
- run: yarn eslint packages/bun-transpiler
|
||||
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/casbin
|
||||
- run: yarn workspace @hono/casbin build
|
||||
- run: yarn workspace @hono/casbin publint
|
||||
- run: yarn eslint packages/casbin
|
||||
- run: yarn test --coverage --project @hono/casbin
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/class-validator
|
||||
- run: yarn test --coverage --project @hono/class-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/clerk-auth
|
||||
- run: yarn test --coverage --project @hono/clerk-auth
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/cloudflare-access
|
||||
- run: yarn test --coverage --project @hono/cloudflare-access
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/conform-validator
|
||||
- run: yarn test --coverage --project @hono/conform-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/effect-validator
|
||||
- run: yarn test --coverage --project @hono/effect-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/esbuild-transpiler
|
||||
- run: yarn test --coverage --project @hono/esbuild-transpiler
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/event-emitter
|
||||
- run: yarn test --coverage --project @hono/event-emitter
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/firebase-auth
|
||||
- run: yarn test --coverage --project @hono/firebase-auth
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/graphql-server
|
||||
- run: yarn test --coverage --project @hono/graphql-server
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/hello
|
||||
- run: yarn workspace @hono/hello build
|
||||
- run: yarn workspace @hono/hello publint
|
||||
- run: yarn eslint packages/hello
|
||||
- run: yarn test --coverage --project @hono/hello
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
name: ci-lint
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: ['*']
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
- run: yarn install
|
||||
- run: yarn lint
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/medley-router
|
||||
- run: yarn test --coverage --project @hono/medley-router
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/node-ws
|
||||
- run: yarn test --coverage --project @hono/node-ws
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/oauth-providers
|
||||
- run: yarn test --coverage --project @hono/oauth-providers
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/oidc-auth
|
||||
- run: yarn test --coverage --project @hono/oidc-auth
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/otel
|
||||
- run: yarn workspace @hono/otel build
|
||||
- run: yarn workspace @hono/otel publint
|
||||
- run: yarn eslint packages/otel
|
||||
- run: yarn test --coverage --project @hono/otel
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/prometheus
|
||||
- run: yarn workspace @hono/prometheus build
|
||||
- run: yarn workspace @hono/prometheus publint
|
||||
- run: yarn eslint packages/prometheus
|
||||
- run: yarn test --coverage --project @hono/prometheus
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/qwik-city
|
||||
# - run: yarn test --coverage --project @hono/qwik-city
|
||||
# - uses: codecov/codecov-action@v5
|
||||
# with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/react-compat
|
||||
# - run: yarn test --coverage --project @hono/react-compat
|
||||
# - uses: codecov/codecov-action@v5
|
||||
# with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/react-renderer
|
||||
- run: yarn test --coverage --project @hono/react-renderer
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/sentry
|
||||
- run: yarn workspace @hono/sentry build
|
||||
- run: yarn workspace @hono/sentry publint
|
||||
- run: yarn eslint packages/sentry
|
||||
- run: yarn test --coverage --project @hono/sentry
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/standard-validator
|
||||
- run: yarn test --coverage --project @hono/standard-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/swagger-editor
|
||||
- run: yarn test --coverage --project @hono/swagger-editor
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/swagger-ui
|
||||
- run: yarn test --coverage --project @hono/swagger-ui
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/trpc-server
|
||||
- run: yarn test --coverage --project @hono/trpc-server
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/tsyringe
|
||||
- run: yarn workspace @hono/tsyringe build
|
||||
- run: yarn workspace @hono/tsyringe publint
|
||||
- run: yarn eslint packages/tsyringe
|
||||
- run: yarn test --coverage --project @hono/tsyringe
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/typebox-validator
|
||||
- run: yarn test --coverage --project @hono/typebox-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/typia-validator
|
||||
- run: yarn test --coverage --project @hono/typia-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/valibot-validator
|
||||
- run: yarn test --coverage --project @hono/valibot-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
|
||||
- run: yarn workspace @hono/zod-openapi build
|
||||
- run: yarn workspace @hono/zod-openapi publint
|
||||
- run: yarn eslint packages/zod-openapi
|
||||
- run: yarn test --coverage --project @hono/zod-openapi
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
- 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 eslint packages/zod-validator
|
||||
- run: yarn test --coverage --project @hono/zod-validator
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import baseConfig from '@hono/eslint-config'
|
||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
import baseConfig from './packages/eslint-config/index.js'
|
||||
|
||||
export default defineConfig(globalIgnores(['.yarn', '**/dist']), {
|
||||
extends: baseConfig,
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
"@changesets/cli": "^2.26.0",
|
||||
"@cloudflare/vitest-pool-workers": "^0.7.8",
|
||||
"@cloudflare/workers-types": "^4.20230307.0",
|
||||
"@hono/eslint-config": "workspace:*",
|
||||
"@ryoppippi/unplugin-typia": "^1.2.0",
|
||||
"@types/node": "^20.14.8",
|
||||
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
||||
|
|
|
@ -1983,7 +1983,7 @@ __metadata:
|
|||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@hono/eslint-config@workspace:packages/eslint-config":
|
||||
"@hono/eslint-config@workspace:*, @hono/eslint-config@workspace:packages/eslint-config":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@hono/eslint-config@workspace:packages/eslint-config"
|
||||
dependencies:
|
||||
|
@ -8413,6 +8413,7 @@ __metadata:
|
|||
"@changesets/cli": "npm:^2.26.0"
|
||||
"@cloudflare/vitest-pool-workers": "npm:^0.7.8"
|
||||
"@cloudflare/workers-types": "npm:^4.20230307.0"
|
||||
"@hono/eslint-config": "workspace:*"
|
||||
"@ryoppippi/unplugin-typia": "npm:^1.2.0"
|
||||
"@types/node": "npm:^20.14.8"
|
||||
"@typescript-eslint/eslint-plugin": "npm:^8.7.0"
|
||||
|
|
Loading…
Reference in New Issue