ruby-changes:67445
From: David <ko1@a...>
Date: Tue, 31 Aug 2021 19:07:32 +0900 (JST)
Subject: [ruby-changes:67445] 43aecf216e (master): [rubygems/rubygems] Get a CI matrix configured in default Github Actions generated config
https://git.ruby-lang.org/ruby.git/commit/?id=43aecf216e From 43aecf216e5ce323d307a94c987c836f40730ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 4 Aug 2021 10:59:50 +0200 Subject: [rubygems/rubygems] Get a CI matrix configured in default Github Actions generated config Even if it only has one entry at the moment, it makes it easier to add new entries by doing it this way. https://github.com/rubygems/rubygems/commit/46232fe265 Co-authored-by: NeimadTL <damientalbot26@g...> --- lib/bundler/templates/newgem/github/workflows/main.yml.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt index 2a6c505..83ddea2 100644 --- a/lib/bundler/templates/newgem/github/workflows/main.yml.tt +++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt @@ -9,12 +9,18 @@ on: https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/github/workflows/main.yml.tt#L9 jobs: build: runs-on: ubuntu-latest + + strategy: + matrix: + ruby: + - <%= RUBY_VERSION %> + steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: <%= RUBY_VERSION %> + ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run the default task run: bundle exec rake -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/