From 9a00fc0fb653dd9e42fde9a7090815c3c5ec1bbf Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 8 Apr 2024 21:52:26 +0200 Subject: [PATCH] Update ruby/setup-ruby to v1 --- .github/workflows/gem-push.yml | 2 +- .github/workflows/ruby.yml | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index 8a84c28..891d491 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -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 diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index d5d2562..bff8253 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -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 @@ -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