Skip to content

chore: Upgrade pnpm/action-setup action to v4 #2003

chore: Upgrade pnpm/action-setup action to v4

chore: Upgrade pnpm/action-setup action to v4 #2003

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request_target:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 18.x
- 20.x
- 22.x
steps:
- uses: actions/checkout@v4.1.4
with:
filter: tree:0
- uses: pnpm/action-setup@v4.0.0
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4.0.1
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: node -v
- run: pnpm install --frozen-lockfile
- run: pnpm test:build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
filter: tree:0
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4.0.1
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint && pnpm pretty:ci
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
filter: tree:0
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4.0.1
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
filter: tree:0
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4.0.1
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test:types