Skip to content

Commit

Permalink
Update ruby/setup-ruby to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Apr 8, 2024
1 parent 06132c1 commit 9a00fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
- 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@d4526a55538b775af234ba4af27118ed6f8f6677
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand All @@ -37,23 +32,15 @@ jobs:
run: gem install ./pathspec*.gem

test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']
# TODO: Fix rubocop issues
# raketasks: ['rubocop', 'spec', 'docs']
raketasks: ['spec', 'docs']


raketasks: ['rubocop', 'spec', 'docs']
steps:
- uses: actions/checkout@v4
- 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@d4526a55538b775af234ba4af27118ed6f8f6677
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down

0 comments on commit 9a00fc0

Please sign in to comment.