honojs-middleware/.github/workflows/ci-event-emitter.yml

33 lines
918 B
YAML

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 }}