From 9292313e0cfe4e57afb7e1316cb1bec3f7eb082c Mon Sep 17 00:00:00 2001 From: Frank Lam Date: Tue, 2 Jun 2020 09:08:09 +0800 Subject: Update github workflow template * https://github.com/ruby/setup-ruby is now the more recommended action --- lib/bundler/templates/newgem/.github/workflows/main.yml.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3