From 43aecf216e5ce323d307a94c987c836f40730ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= 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 --- lib/bundler/templates/newgem/github/workflows/main.yml.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 2a6c505cfd..83ddea25dc 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: 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.2.3