summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/.github/workflows/main.yml.tt
blob: 929901ac56b470f9f637699999634bff08bb7891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Ruby

on: [push,pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>
      uses: actions/setup-ruby@v1
      with:
        ruby-version: <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>.x
    - name: Build and test with Rake
      run: |
        gem install bundler -v <%= Bundler::VERSION %>
        bundle install --jobs 4 --retry 3
        bundle exec rake