diff options
Diffstat (limited to 'lib/bundler/templates/newgem/github/workflows/main.yml.tt')
-rw-r--r-- | lib/bundler/templates/newgem/github/workflows/main.yml.tt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt index 654978033f..83ddea25dc 100644 --- a/lib/bundler/templates/newgem/github/workflows/main.yml.tt +++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt @@ -1,16 +1,26 @@ name: Ruby -on: [push,pull_request] +on: + push: + - <%= config[:git_default_branch] %> + + pull_request: 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 |