Skip to content

Commit

Permalink
Use ruby/setup-ruby instead of actions/setup-ruby which is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
noriyotcp committed Oct 15, 2022
1 parent 0d50b95 commit 47be0f8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# 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: Setup Ruby
on:
push:
branches: [ main ]
Expand All @@ -15,19 +14,12 @@ on:

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: bundle install
bundler-cache: true
- name: Run tests
run: bundle exec rake

0 comments on commit 47be0f8

Please sign in to comment.