Use ruby/setup-ruby for the Ruby starter workflow
This commit is contained in:
+15
-9
@@ -1,3 +1,10 @@
|
|||||||
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
|
# They are provided by a third-party and are governed by
|
||||||
|
# separate terms of service, privacy policy, and support
|
||||||
|
# documentation.
|
||||||
|
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
||||||
|
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
||||||
|
|
||||||
name: Ruby
|
name: Ruby
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -7,18 +14,17 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby
|
||||||
uses: actions/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6.x
|
ruby-version: 2.6
|
||||||
- name: Build and test with Rake
|
- name: Install dependencies
|
||||||
run: |
|
run: bundle install
|
||||||
gem install bundler
|
- name: Run tests
|
||||||
bundle install --jobs 4 --retry 3
|
run: bundle exec rake
|
||||||
bundle exec rake
|
|
||||||
|
|||||||
Reference in New Issue
Block a user