Skip to content

fix(ci): add missing pnpm install step #11

fix(ci): add missing pnpm install step

fix(ci): add missing pnpm install step #11

Workflow file for this run

name: test
on: push
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
# Alternative
# - name: Cache node modules
# uses: actions/cache@v3
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.pnpm-store
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm build
- name: Test
run: pnpm test