Skip to content

feat: add opt-in zstd content-encoding #39

feat: add opt-in zstd content-encoding

feat: add opt-in zstd content-encoding #39

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: 20.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:
# 20 is the floor (matches h3's `engines`) and has no zstd in
# `node:zlib`; 22 and 24 do (added in 22.15 / 23.8), so both the zstd
# path and its fallback get exercised.
node: [20, 22, 24]
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