Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Improve CI caching
Rūdolfs Ošiņš committed 2 days ago
commit 052839ac7cc10b5e53b9688099df52ce8a3492d9
parent 56db0a0
4 files changed +24 -26
modified .github/workflows/check-arch-package.yaml
@@ -7,6 +7,9 @@ on:
      - "arch/**"
  workflow_dispatch:

+
env:
+
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+

jobs:
  build-arch:
    runs-on: ubuntu-latest
@@ -18,7 +21,7 @@ jobs:
      - name: Install git
        run: pacman -Sy --noconfirm git

-
      - uses: actions/checkout@v4
+
      - uses: actions/checkout@v6

      - name: Set up builder user
        run: |
@@ -27,7 +30,7 @@ jobs:
          chown -R builder:builder "$GITHUB_WORKSPACE"

      - name: Cache cargo registry
-
        uses: actions/cache@v4
+
        uses: actions/cache@v5
        with:
          path: /home/builder/.cargo/registry
          key: arch-cargo-${{ hashFiles('arch/radicle-desktop/PKGBUILD') }}
modified .github/workflows/e2e.yaml
@@ -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') }}
modified .github/workflows/lint.yaml
@@ -3,6 +3,9 @@ on:
  push:
  workflow_dispatch:

+
env:
+
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+

jobs:
  lint-typescript:
    runs-on: ubuntu-latest
@@ -10,11 +13,11 @@ jobs:
      image: node:22.11.0

    steps:
-
      - uses: actions/checkout@v4
+
      - uses: actions/checkout@v6

      - 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') }}
@@ -30,15 +33,8 @@ jobs:
      image: quay.io/radicle_garden/radicle-desktop-base: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-lint-${{ hashFiles('**/Cargo.lock') }}
-
          restore-keys: rust-lint-
+
      - uses: Swatinem/rust-cache@v2

      - run: scripts/check-rs
modified .github/workflows/unit-test.yaml
@@ -3,6 +3,9 @@ on:
  push:
  workflow_dispatch:

+
env:
+
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+

jobs:
  unit-tests:
    runs-on: ubuntu-latest
@@ -10,11 +13,11 @@ jobs:
      image: node:22.11.0

    steps:
-
      - uses: actions/checkout@v4
+
      - uses: actions/checkout@v6

      - 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') }}