Skip to content

Release 3.1.1

Release 3.1.1 #26

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Node.js ${{ matrix['node-version'] }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- "20"
# - "18"
# - "16"
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
steps:
- name: Setup Node.js ${{ matrix['node-version'] }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix['node-version'] }}
- name: Checkout source code
uses: actions/checkout@v3
- name: Install pnpm
run: npm install -g pnpm@8.7.4
# doesn't work with Node 20
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8.7.4
# run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ matrix.os }}${{ matrix['node-version'] }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ matrix.os }}${{ matrix['node-version'] }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile false
- name: Build code
run: npm run build
- name: Run tests
run: npm test