honojs-middleware/.github/workflows/ci-valibot-validator.yml

31 lines
933 B
YAML

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: oven-sh/setup-bun@v2
- run: bun install --filter './' --filter './packages/valibot-validator'
- run: bun --filter './packages/valibot-validator' build
- run: bun --filter './packages/valibot-validator' publint
- run: bun --filter './packages/valibot-validator' typecheck
- run: bun eslint packages/valibot-validator
- run: bun vitest --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 }}