Skip to content

Test pnpm caching #1131

Test pnpm caching

Test pnpm caching #1131

Workflow file for this run

name: Test pnpm caching
on:
push:
branches:
- main
pull_request:
branches:
- "*"
schedule:
- cron: "20 */6 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
pnpm:
runs-on:
- namespace-profile-e2e-small
steps:
- uses: actions/checkout@v4
with:
path: nscloud-cache-action
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: "8.6.2"
- uses: actions/checkout@v4
with:
repository: namespace-integration-demos/cache-pnpm-workspace
path: demo
- name: Setup pnpm cache
uses: ./nscloud-cache-action # Uses an action in the root directory
with:
cache: pnpm
- run: pnpm install
working-directory: ./demo/fullstack
- name: Print cache metadata file
run: |
ls -al /cache/.ns
cat /cache/.ns/cache-metadata.json