test(bun-compress): fix vitest config (#1164)
* test(bun-compress): fix vitest config * ci(bun-compress): add workflowpull/1163/head
parent
e63499755a
commit
d29f2cbdc6
|
@ -0,0 +1,32 @@
|
||||||
|
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 }}
|
|
@ -1,4 +1,4 @@
|
||||||
import { defineProject } from 'vitest/config.js'
|
import { defineProject } from 'vitest/config'
|
||||||
|
|
||||||
export default defineProject({
|
export default defineProject({
|
||||||
test: {
|
test: {
|
||||||
|
|
Loading…
Reference in New Issue