1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

CI: use ruby/setup-ruby + bundler-cache

This commit is contained in:
Olle Jonsson 2021-09-10 20:31:09 +02:00 committed by GitHub
parent b421336867
commit fcc68965b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,20 +9,10 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Do some action caching
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Set up Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install bundler
run: gem install bundler
- name: Run bundler
run: bundle install --jobs 4 --retry 3
bundler-cache: true # Run "bundle install", and cache the result automatically.
- name: Run Rake
run: bundle exec rake