Improve CI caching

This caches all rust compilation. We also bump actions to their latest
versions.
This commit is contained in:
Rūdolfs Ošiņš
2026-04-28 14:40:43 +02:00
parent 56db0a0dcb
commit 052839ac7c
4 changed files with 24 additions and 26 deletions
+7 -11
View File
@@ -3,6 +3,9 @@ on:
push:
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
e2e:
runs-on: ubuntu-latest
@@ -10,20 +13,13 @@ jobs:
image: quay.io/radicle_garden/radicle-desktop-e2e:latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: rust-e2e-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-e2e-
- uses: Swatinem/rust-cache@v2
- name: Cache node_modules
id: cache-npm
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
@@ -32,7 +28,7 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
- name: Cache heartwood binaries
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: tests/tmp/bin
key: heartwood-${{ hashFiles('tests/support/heartwood-release') }}