mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
CI: fix Ruby caching
This commit is contained in:
parent
35d5cbf4fd
commit
42714733b6
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user