-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 1004 Bytes
/
call-reusable.yml
File metadata and controls
40 lines (31 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Reproduce Cache 422 Error
on:
workflow_call:
jobs:
cache-422-repro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.20.4
- name: Install PNPM
run: npm install -g pnpm
- name: Restore PNPM cache (Path A)
uses: actions/cache@v4
with:
path: /tmp/pnpm-store-path-A
key: pnpm-store-Linux-18.20.4-v1
- name: Show restored files
run: ls -la /tmp/pnpm-store-path-A || echo "No cache restored"
- name: Prepare different cache content in Path B
run: |
mkdir -p /tmp/pnpm-store-path-B
echo "different dummy cache content" > /tmp/pnpm-store-path-B/cache.txt
ls -la /tmp/pnpm-store-path-B
- name: Save PNPM cache (Path B)
uses: actions/cache@v4
with:
path: /tmp/pnpm-store-path-B
key: pnpm-store-Linux-18.20.4-v1