mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 20:55:50 +02:00
CI: fix Ruby caching
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -12,6 +12,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [6, 8, 12]
|
node: [6, 8, 12]
|
||||||
|
ruby: [2.4.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
@@ -25,7 +26,7 @@ jobs:
|
|||||||
- name: Set up Ruby 2.4
|
- name: Set up Ruby 2.4
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.4.x
|
ruby-version: ${{ matrix.ruby }}
|
||||||
|
|
||||||
- name: Disable gem docs
|
- name: Disable gem docs
|
||||||
run: 'echo "gem: --no-document" > ~/.gemrc'
|
run: 'echo "gem: --no-document" > ~/.gemrc'
|
||||||
@@ -34,9 +35,10 @@ jobs:
|
|||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: vendor/bundle
|
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: |
|
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
|
- name: Set up npm cache
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
Reference in New Issue
Block a user