From 605704738459472ba8129eefb01c9cf784415ae4 Mon Sep 17 00:00:00 2001 From: Grant Willcox Date: Tue, 27 Dec 2022 11:24:06 -0600 Subject: [PATCH] fix: :bug: Add quotes around Ruby version strings This fixes issues where Ruby would interpret version strings as floats, which could lead to casting errors. An example of this was when 3.0 would be interpreted as the number 3, so instead of getting the latest Ruby 3.0.X release, you would instead get the latest Ruby 3 release. --- .github/workflows/verify.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b5505d454a9e..456e9f1a52b8 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -64,18 +64,18 @@ jobs: fail-fast: true matrix: ruby: - - 2.7 - - 3.0 - - 3.1 + - '2.7' + - '3.0' + - '3.1' os: - ubuntu-20.04 - ubuntu-latest exclude: - - { os: ubuntu-latest, ruby: 2.7 } - - { os: ubuntu-latest, ruby: 3.0 } + - { os: ubuntu-latest, ruby: '2.7' } + - { os: ubuntu-latest, ruby: '3.0' } include: - os: ubuntu-latest - ruby: 3.1 + ruby: '3.1' test_cmd: 'bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" DATASTORE_FALLBACKS=1' test_cmd: - bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" @@ -100,7 +100,7 @@ jobs: BUNDLE_WITHOUT: "coverage development pcap" uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby }} + ruby-version: '${{ matrix.ruby }}' bundler-cache: true - name: Create database