CI: fix Ruby caching

This commit is contained in:
XhmikosR 2019-12-26 15:18:51 +02:00
parent 35d5cbf4fd
commit 42714733b6
1 changed files with 5 additions and 3 deletions

View 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