]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
CI: fix Ruby caching
authorXhmikosR <xhmikosr@gmail.com>
Thu, 26 Dec 2019 13:18:51 +0000 (15:18 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 2 Jan 2020 10:11:56 +0000 (12:11 +0200)
.github/workflows/test.yml

index 18e44ea40b5df2e0283043976455f4d8bd8ff24e..d55e6d7f11e79a37b42323c6b471ce54301147b3 100644 (file)
@@ -12,6 +12,7 @@ jobs:
       fail-fast: false
       matrix:
         node: [6, 8, 12]
+        ruby: [2.4.x]
 
     steps:
       - name: Clone repository
@@ -25,7 +26,7 @@ jobs:
       - name: Set up Ruby 2.4
         uses: actions/setup-ruby@v1
         with:
-          ruby-version: 2.4.x
+          ruby-version: ${{ matrix.ruby }}
 
       - name: Disable gem docs
         run: 'echo "gem: --no-document" > ~/.gemrc'
@@ -34,9 +35,10 @@ jobs:
         uses: actions/cache@v1
         with:
           path: vendor/bundle
-          key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
+          key: ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
           restore-keys: |
-            ${{ runner.os }}-gem-
+            ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
+            ${{ runner.os }}-ruby-v${{ matrix.ruby }}-
 
       - name: Set up npm cache
         uses: actions/cache@v1