Skip to content

feat(eslint-config): enable linting with type information #40

feat(eslint-config): enable linting with type information

feat(eslint-config): enable linting with type information #40

Workflow file for this run

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