diff options
author | Colby Swandale <me@colby.fyi> | 2020-02-09 00:44:43 +1100 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2020-02-09 09:58:44 +1100 |
commit | a5285007da99f0cc1f232b063bda2c67a4aa94ae (patch) | |
tree | 9ef4565190b2f793712ab5784c7aeb8b05122465 /lib/bundler/templates/newgem/.github/workflows/main.yml.tt | |
parent | 203d02c3670083a95733afc1a9d7a870d1ae1c34 (diff) | |
download | bundler-a5285007da99f0cc1f232b063bda2c67a4aa94ae.tar.gz |
add new option for choosing a CI sevice in bundle gem command
Diffstat (limited to 'lib/bundler/templates/newgem/.github/workflows/main.yml.tt')
-rw-r--r-- | lib/bundler/templates/newgem/.github/workflows/main.yml.tt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt new file mode 100644 index 0000000000..929901ac56 --- /dev/null +++ b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt @@ -0,0 +1,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 |