Skip to content

feat: sync lib with upstream #10

feat: sync lib with upstream

feat: sync lib with upstream #10

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on ${{ matrix.os }} and Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node-version:
- 18
- 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: |
args: [--ignore-scripts]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Build binary
run: pnpm binary:build
- name: BenchMark
run: pnpm test:benchmark
- name: Coverage
run: pnpm test:coverage
- name: Upload coverage
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v3