Skip to content

fix: compress JSON/buffer bodies in beforeResponse (#17) #29

fix: compress JSON/buffer bodies in beforeResponse (#17)

fix: compress JSON/buffer bodies in beforeResponse (#17) #29

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Lint
run: nr lint
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [18, 20]
h3: [1, 2]
os: [ubuntu-latest, macos-latest]
fail-fast: false
name: test (node-${{ matrix.node }}, h3-v${{ matrix.h3 }}, ${{ matrix.os }})
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install
- name: Install h3 v${{ matrix.h3 }}
run: pnpm add -D h3@${{ matrix.h3 == 1 && '^1.8.0' || '2.0.1-rc.22' }} --ignore-scripts
- run: pnpm build
# - run: pnpm test:types
- run: pnpm vitest --coverage && rm -rf coverage/tmp
- uses: codecov/codecov-action@v3