]> git.openstreetmap.org Git - rails.git/commitdiff
Use setup-node action to install node modules
authorTom Hughes <tom@compton.nu>
Sun, 16 Feb 2025 15:19:14 +0000 (15:19 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Feb 2025 15:26:10 +0000 (15:26 +0000)
.github/workflows/lint.yml
.github/workflows/tests.yml

index 06f6ff841bbf7c32b274beb973af64adf7f641a4..75a1cc960f6e8c3fd44c343274f5cb0adcd2f985 100644 (file)
@@ -50,12 +50,9 @@ jobs:
         rubygems: 3.4.10
         bundler-cache: true
     - name: Cache node modules
-      uses: actions/cache@v4
+      uses: actions/setup-node@v4
       with:
-        path: node_modules
-        key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }}
-        restore-keys: |
-          yarn-${{ env.os }}-
+        cache: yarn
     - name: Install node modules
       run: bundle exec bin/yarn install
     - name: Create dummy database configuration
index 156ed99e73ae608132f0be3fc30f1466293e0979..e478cd6d8353c4281ea2e4236903997550fa6ee4 100644 (file)
@@ -26,12 +26,9 @@ jobs:
         rubygems: 3.4.10
         bundler-cache: true
     - name: Cache node modules
-      uses: actions/cache@v4
+      uses: actions/setup-node@v4
       with:
-        path: node_modules
-        key: yarn-ubuntu-${{ matrix.ubuntu }}-${{ hashFiles('yarn.lock') }}
-        restore-keys: |
-          yarn-ubuntu-${{ matrix.ubuntu }}-
+        cache: yarn
     - name: Install packages
       run: |
         sudo apt-get -yqq update