aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-05-10 21:27:44 +0300
committerXhmikosR <[email protected]>2020-05-12 19:21:36 +0300
commitbad48dc3b90d7437de3556ae62fa4fa7c6291119 (patch)
tree549efe42e03af07469f3a79150255f2ce3d1d06a
parent86f2c014592dfacdceef70ed05070b2548f74805 (diff)
downloadbootstrap-bad48dc3b90d7437de3556ae62fa4fa7c6291119.tar.xz
bootstrap-bad48dc3b90d7437de3556ae62fa4fa7c6291119.zip
CI: simplify cache
While it might not be possible to invalidate the cache by changing test.yml, this should speed things up a lot due to `bundle i` taking most of the time.
-rw-r--r--.github/workflows/test.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d87b1e122..0aac36a6b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -35,17 +35,19 @@ jobs:
uses: actions/cache@v1
with:
path: vendor/bundle
- key: ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ key: ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
- ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ ${{ runner.os }}-ruby-v${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
+ ${{ runner.os }}-ruby-v${{ matrix.ruby }}-
- name: Set up npm cache
uses: actions/cache@v1
with:
path: ~/.npm
- key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
- ${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ ${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ ${{ runner.OS }}-node-v${{ matrix.node }}-
- name: Set up Bundler
run: gem install bundler -v "~> 1.17"