Skip to content

ci: upgrade setup pnpm #80

ci: upgrade setup pnpm

ci: upgrade setup pnpm #80

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@v2
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@v2
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