Update CI templates

* Next version of Bundler will auto choose jobs by default
* --retry 3 is already default
This commit is contained in:
Frank Lam 2020-05-30 11:29:31 +08:00 committed by Hiroshi SHIBATA
parent a1a5973daa
commit 90f3591744
Notes: git 2020-06-18 19:15:08 +09:00
2 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>.x
- name: Build and test with Rake
run: |
gem install bundler -v <%= Bundler::VERSION %>
bundle install --jobs 4 --retry 3
bundle install
bundle exec rake

View File

@ -4,6 +4,6 @@ before_script:
- gem install bundler -v <%= Bundler::VERSION %>
- bundle install
example_job:
test:
script:
- bundle exec rake
- bundle exec rake test