Skip to content

Commit 1ad4924

Browse files
committed
Make CI faster by caching gems more
1 parent 077c41e commit 1ad4924

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
validate:
1111
runs-on: ubuntu-latest
1212
env:
13-
BUNDLE_PATH: gems
13+
# ruby/setup-ruby@v1 does not offer a way to change the cached gems path.
14+
# See https://github.com/ruby/setup-ruby/issues/291
15+
GLOBAL_GEMS: 1
1416
steps:
1517
- uses: actions/checkout@v2
1618
with:
@@ -21,7 +23,7 @@ jobs:
2123
with:
2224
ruby-version: 2.7
2325
bundler-cache: true
24-
cache-version: 1
26+
cache-version: 2
2527

2628
- name: Build & Validate
2729
run: rake validate

0 commit comments

Comments
 (0)