summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrank Lam <ryzingsun11@yahoo.com>2020-05-30 11:29:31 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commit90f3591744330009971a116a8d0bc100eed59ebe (patch)
treecce81b0708f2fce212d2940f75c50a4c8d405812 /lib
parenta1a5973daaf7f433886eed9fe503982cffcf5b99 (diff)
Update CI templates
* Next version of Bundler will auto choose jobs by default * --retry 3 is already default
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/templates/newgem/.github/workflows/main.yml.tt4
-rw-r--r--lib/bundler/templates/newgem/.gitlab-ci.yml.tt4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt
index 929901ac56..5ebe3c753a 100644
--- a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt
+++ b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt
@@ -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
diff --git a/lib/bundler/templates/newgem/.gitlab-ci.yml.tt b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt
index 0e71ff26a4..5633276b91 100644
--- a/lib/bundler/templates/newgem/.gitlab-ci.yml.tt
+++ b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt
@@ -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