Skip to content

Commit 9476615

Browse files
author
Edward Thomson
authored
Merge pull request #448 from eregon/add-ruby-setup-ruby
Add starter workflow for ruby/setup-ruby
2 parents eef30f8 + 9dd8f4e commit 9476615

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

ci/ruby.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
18
name: Ruby
29

310
on:
@@ -7,18 +14,20 @@ on:
714
branches: [ master ]
815

916
jobs:
10-
build:
17+
test:
1118

1219
runs-on: ubuntu-latest
1320

1421
steps:
1522
- uses: actions/checkout@v2
16-
- name: Set up Ruby 2.6
17-
uses: actions/setup-ruby@v1
23+
- name: Set up Ruby
24+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
25+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
26+
# uses: ruby/setup-ruby@v1
27+
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
1828
with:
19-
ruby-version: 2.6.x
20-
- name: Build and test with Rake
21-
run: |
22-
gem install bundler
23-
bundle install --jobs 4 --retry 3
24-
bundle exec rake
29+
ruby-version: 2.6
30+
- name: Install dependencies
31+
run: bundle install
32+
- name: Run tests
33+
run: bundle exec rake

0 commit comments

Comments
 (0)