--- /dev/null
+name: 'ci'
+on:
+ push:
+ branches:
+ - '**'
+ pull_request:
+ branches:
+ - main
+jobs:
+ test:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os:
+ - ubuntu-latest
+ - macos-latest
+ - windows-latest
+ node_version:
+ - 12
+ - 14
+ - 16
+ name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v1
+ - uses: pnpm/action-setup@v2.0.1
+ with:
+ version: 6
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node_version }}
+ cache: 'pnpm'
+ - run: pnpm install
+ - run: pnpm test