Test pnpm caching #1121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |