From 9763db4508ca62acc7c724bdb2bb3b675ad4fbff Mon Sep 17 00:00:00 2001 From: Patrick Honkonen <1883101+SaintPatrck@users.noreply.github.com> Date: Thu, 2 May 2024 19:28:56 -0400 Subject: [PATCH] Declare ruby version globally (#1333) --- .github/workflows/run-check.yml | 2 -- .ruby-version | 1 + Gemfile | 2 +- Gemfile.lock | 8 ++++---- 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .ruby-version diff --git a/.github/workflows/run-check.yml b/.github/workflows/run-check.yml index a42fa553b..8e69566a2 100644 --- a/.github/workflows/run-check.yml +++ b/.github/workflows/run-check.yml @@ -7,7 +7,6 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JAVA_VERSION: 17 - RUBY_VERSION: 3.2.2 jobs: test: @@ -40,7 +39,6 @@ jobs: uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: bundler-cache: true - ruby-version: ${{ env.RUBY_VERSION }} - name: Configure JDK uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..bea438e9a --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.1 diff --git a/Gemfile b/Gemfile index 7750df710..db06b4b51 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -ruby '3.2.2' +ruby File.read(".ruby-version").strip gem 'danger' gem 'danger-shroud' diff --git a/Gemfile.lock b/Gemfile.lock index 453ab172e..dec1b1aea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -43,12 +43,12 @@ GEM rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - mini_portile2 (2.8.5) + mini_portile2 (2.8.6) nap (1.1.0) net-http (0.4.1) uri no_proxy_fix (0.1.2) - nokogiri (1.16.3) + nokogiri (1.16.4) mini_portile2 (~> 2.8.2) racc (~> 1.4) octokit (8.1.0) @@ -56,7 +56,7 @@ GEM faraday (>= 1, < 3) sawyer (~> 0.9) open4 (1.3.4) - public_suffix (5.0.4) + public_suffix (5.0.5) racc (1.7.3) rchardet (1.8.0) rexml (3.2.6) @@ -76,7 +76,7 @@ DEPENDENCIES danger-shroud RUBY VERSION - ruby 3.2.2p53 + ruby 3.3.1p55 BUNDLED WITH 2.4.10