Skip to content

Update README.md

Update README.md #8

Workflow file for this run

name: Unit Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Type Check
run: nr typecheck
- name: Lint
run: nr lint
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16, 18, 20]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Build
run: nr build
- name: Build Examples
run: pnpm run -r --parallel build
- name: Unit Test
run: pnpm test