Skip to content

Use corepack pnpm instead of volta npm #43

Use corepack pnpm instead of volta npm

Use corepack pnpm instead of volta npm #43

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
# Cancel in-progress workflows on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
name: Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Pulls version from packageManager key in package.json
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Typecheck
run: pnpm typecheck
format:
name: Check prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Pulls version from packageManager key in package.json
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check formatting
run: pnpm format:check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Pulls version from packageManager key in package.json
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Test
run: pnpm test