Skip to content

ci: upgrade setup pnpm #81

ci: upgrade setup pnpm

ci: upgrade setup pnpm #81

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
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install deps
run: pnpm i --frozen-lockfile
- name: Lint
run: pnpm lint
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18, 20]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install deps
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm build