diff options
author | Frank Lam <ryzingsun11@yahoo.com> | 2020-06-02 09:08:09 +0800 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | 9292313e0cfe4e57afb7e1316cb1bec3f7eb082c (patch) | |
tree | 174bf4b41751a62c135846fc37fa162aebfe7071 /lib/bundler/templates/newgem | |
parent | 90f3591744330009971a116a8d0bc100eed59ebe (diff) |
Update github workflow template
* https://github.com/ruby/setup-ruby is now the more recommended action
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'lib/bundler/templates/newgem')
-rw-r--r-- | lib/bundler/templates/newgem/.github/workflows/main.yml.tt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt index 5ebe3c753a..40112f661a 100644 --- a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt +++ b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt @@ -8,10 +8,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 with: - ruby-version: <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>.x - - name: Build and test with Rake + ruby-version: <%= RUBY_VERSION %> + - name: Run tests run: | gem install bundler -v <%= Bundler::VERSION %> bundle install |