Skip to content

test

test #251

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- gh-pages
pull_request:
branches-ignore:
- gh-pages
types:
- opened
- synchronize
- reopened
permissions:
contents: read
env:
CI: true
jobs:
test:
name: 'Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# NOTE: disable due to not work in windows env fs.readFile?
# os: [ubuntu-latest, windows-latest, macos-latest]
node: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm test