Skip to content

chore: fix ci

chore: fix ci #361

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
node:
- '12'
- '14'
- '16'
- '18'
- '20'
platform:
- ubuntu-latest
- windows-latest
- macos-latest
name: '${{matrix.platform}} / Node.js ${{ matrix.node }}'
runs-on: ${{matrix.platform}}
steps:
- name: Checkout Commit
uses: actions/checkout@v4
- name: Setup Node
if: matrix.platform != 'macos-latest' || (matrix.node != '12' && matrix.node != '14')
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
# https://github.com/actions/setup-node/issues/1017
- name: Setup Node (macos, node<=14)
if: matrix.platform == 'macos-latest' && (matrix.node == '12' || matrix.node == '14')
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: 'x64'
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
with:
version: next-9
standalone: true
- name: pnpm install
run: pnpm install
- name: Compile
run: pnpm -r run prepublishOnly
- name: run tests
run: pnpm run test-all