Skip to content

Commit

Permalink
Cache gems in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Dec 26, 2021
1 parent c45503f commit d5b20fb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: welaika/wordmove:alpine
image: welaika/wordmove:latest

steps:
- uses: actions/checkout@v2
- name: Cache gems
uses: actions/cache@v2
with:
path: .vendor/bundle
key: ${{ hashFiles('wordmove.gemspec') }}
- name: Install bundler
run: gem install bundler:2.3.3
- name: Install dependencies
run: bundle install
run : |
bundle config set path .vendor/bundle
bundle install
- name: Run tests
run: bundle exec rake

0 comments on commit d5b20fb

Please sign in to comment.