Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use .nvmrc node version in gh actions
Rūdolfs Ošiņš committed 29 days ago
commit 30e134b740615855b8c0c5e4d872c0c2c0ce8a22
parent 1805275a63592e36ca998403f44f27bde0f56d65
3 files changed +8 -30
modified .github/workflows/e2e.yaml
@@ -14,18 +14,13 @@ jobs:

    steps:
      - uses: actions/checkout@v6
-

-
      - uses: Swatinem/rust-cache@v2
-

-
      - name: Cache node_modules
-
        id: cache-npm
-
        uses: actions/cache@v5
+
      - uses: actions/setup-node@v6
        with:
-
          path: node_modules
-
          key: node-modules-${{ hashFiles('package-lock.json') }}
+
          node-version-file: ".nvmrc"

      - run: npm ci
-
        if: steps.cache-npm.outputs.cache-hit != 'true'
+

+
      - uses: Swatinem/rust-cache@v2

      - name: Cache heartwood binaries
        uses: actions/cache@v5
modified .github/workflows/lint.yaml
@@ -9,22 +9,14 @@ env:
jobs:
  lint-typescript:
    runs-on: ubuntu-latest
-
    container:
-
      image: node:22.11.0

    steps:
      - uses: actions/checkout@v6
-

-
      - name: Cache node_modules
-
        id: cache-npm
-
        uses: actions/cache@v5
+
      - uses: actions/setup-node@v6
        with:
-
          path: node_modules
-
          key: node-modules-${{ hashFiles('package-lock.json') }}
+
          node-version-file: ".nvmrc"

      - run: npm ci
-
        if: steps.cache-npm.outputs.cache-hit != 'true'
-

      - run: npm run check-js

  lint-rust:
modified .github/workflows/unit-test.yaml
@@ -9,20 +9,11 @@ env:
jobs:
  unit-tests:
    runs-on: ubuntu-latest
-
    container:
-
      image: node:22.11.0

    steps:
      - uses: actions/checkout@v6
-

-
      - name: Cache node_modules
-
        id: cache-npm
-
        uses: actions/cache@v5
+
      - uses: actions/setup-node@v6
        with:
-
          path: node_modules
-
          key: node-modules-${{ hashFiles('package-lock.json') }}
-

+
          node-version-file: ".nvmrc"
      - run: npm ci
-
        if: steps.cache-npm.outputs.cache-hit != 'true'
-

      - run: npm run test:unit