]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Actions: add gems caching
authorXhmikosR <xhmikosr@gmail.com>
Sun, 8 Dec 2019 13:58:39 +0000 (15:58 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 14 Dec 2019 15:09:46 +0000 (17:09 +0200)
.github/workflows/test.yml

index 2cb23ab269890afa57c3de51cfe6ea90f7c75f07..288040a05a687dd8bc58b01bbb4df6240433d644 100644 (file)
@@ -30,15 +30,13 @@ jobs:
       - name: Disable gem docs
         run: 'echo "gem: --no-document" > ~/.gemrc'
 
-      - name: Set up Bundler
-        run: gem install bundler -v "~> 1.17"
-
-      - run: ruby --version
-      - run: gem --version
-      - run: bundle --version
-      - run: node --version
-      - run: npm --version
-      - run: java -version
+      - name: Set up Ruby cache
+        uses: actions/cache@v1
+        with:
+          path: vendor/bundle
+          key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
+          restore-keys: |
+            ${{ runner.os }}-gem-
 
       - name: Set up npm cache
         uses: actions/cache@v1
@@ -50,6 +48,16 @@ jobs:
             ${{ runner.OS }}-node-v{{ matrix.node }}-
             ${{ runner.OS }}-
 
+      - name: Set up Bundler
+        run: gem install bundler -v "~> 1.17"
+
+      - run: ruby --version
+      - run: gem --version
+      - run: bundle --version
+      - run: node --version
+      - run: npm --version
+      - run: java -version
+
       - name: Install npm dependencies
         run: npm install