ci: add Go and pnpm caching, upgrade to Node 24

Philip Zeyliger and Claude created

- Enable Go module caching via setup-go cache option
- Add pnpm caching via setup-node cache option
- Upgrade Node.js from 20 to 24 (current LTS)
- Reorder pnpm setup before node setup for cache detection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Change summary

.github/workflows/release.yml | 13 ++++++++-----
.github/workflows/test.yml    | 13 ++++++++-----
2 files changed, 16 insertions(+), 10 deletions(-)

Detailed changes

.github/workflows/release.yml 🔗

@@ -42,17 +42,20 @@ jobs:
         uses: actions/setup-go@v5
         with:
           go-version: '1.24'
-
-      - name: Set up Node.js
-        uses: actions/setup-node@v4
-        with:
-          node-version: '20'
+          cache: true
 
       - name: Set up pnpm
         uses: pnpm/action-setup@v4
         with:
           version: 9
 
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: '24'
+          cache: 'pnpm'
+          cache-dependency-path: ui/pnpm-lock.yaml
+
       - name: Build UI
         run: |
           cd ui

.github/workflows/test.yml 🔗

@@ -19,17 +19,20 @@ jobs:
         uses: actions/setup-go@v5
         with:
           go-version: '1.24'
-
-      - name: Set up Node.js
-        uses: actions/setup-node@v4
-        with:
-          node-version: '20'
+          cache: true
 
       - name: Set up pnpm
         uses: pnpm/action-setup@v4
         with:
           version: 9
 
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: '24'
+          cache: 'pnpm'
+          cache-dependency-path: ui/pnpm-lock.yaml
+
       - name: Build UI
         run: |
           cd ui