Skip to content

Configure pnpm on CI #8

Configure pnpm on CI

Configure pnpm on CI #8

Workflow file for this run

name: "[core] Check module"
on:
push:
pull_request:
paths:
core
!core/**.md
env:
WORKING_DIRECTORY: core
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: ${{ env.WORKING_DIRECTORY }}
- name: Install pnpm
run: npm install -g pnpm
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ${{ env.WORKING_DIRECTORY }}/.node-version
cache: 'pnpm'
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/pnpm-lock.yml
- name: Lint & format
run: |
make check
working-directory: ${{ env.WORKING_DIRECTORY }}