Skip to content

Commit e369949

Browse files
committed
Cache ruby deps
1 parent ce8074a commit e369949

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-16.04
9+
runs-on: ubuntu-20.04
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Setup Ruby
1313
uses: ruby/[email protected]
1414
with:
15-
ruby-version: 2.5
16-
bundler-cache: true
15+
ruby-version: 2.7
16+
- name: Bundle path
17+
run: |
18+
bundle config path .vendor/bundle
19+
- name: Cache Ruby deps
20+
uses: actions/cache@v2
21+
with:
22+
path: .vendor/bundle
23+
key: ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
24+
restore-keys: |
25+
ruby-${{ matrix.os }}-${{ matrix.ruby }}-
1726
- name: Ruby deps
1827
run: gem install json kramdown jekyll bundler
1928
- name: Setup Python

0 commit comments

Comments
 (0)