diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-11-29 13:48:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-29 13:48:14 +0300 |
commit | 72b24d905d392e1b57b353b2911fc0270f2dd9f9 (patch) | |
tree | 77dcc4c3eb86061fe744cfafb2c87ce99f21c5bc /.github | |
parent | fee176024b2f605d954402f196b449fd032a94b1 (diff) |
CI: add caching (#124)
If one of the following files changes, a new cache file will be generated
* Gemfile
* Gemfile.lock
* .github/workflows/test.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d6e1b80..407247ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,14 @@ jobs: - name: Disable gem docs run: 'echo "gem: --no-document" > ~/.gemrc' + - name: Set up Ruby cache + uses: actions/cache@v1 + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/test.yml') }} + restore-keys: | + ${{ runner.os }}-gem- + - name: Set up Bundler run: gem install bundler -v "~> 1.17" |