Skip to content

ci: update pnpm action version #100

ci: update pnpm action version

ci: update pnpm action version #100

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [16, 18, 20, 22]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 6
- name: Set node version to ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install deps
run: pnpm install
- name: Run build
run: pnpm build
- name: Run test
run: pnpm test
lint:
runs-on: ubuntu-latest
name: 'Lint: node-16, ubuntu-latest'
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 6
- name: Set node version to 16
uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- name: Install deps
run: pnpm install
- name: Lint
run: pnpm lint