From f8a9f6e1f6da5650127e002120a05c0f1f36b64b Mon Sep 17 00:00:00 2001 From: tvpartytonight Date: Fri, 11 Jul 2025 12:48:46 -0700 Subject: [PATCH] Install multi_json 1.15.0 on all ruby 2.7 versions multi_json 1.16.0 is not properly detected to be ruby 3.2 on ruby 2.7. --- .github/workflows/unit_tests_with_nightly_puppet_gem.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml index b9ec604..676d248 100644 --- a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml +++ b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml @@ -20,10 +20,6 @@ jobs: os_type: 'Linux' env_set_cmd: 'export ' gem_file: 'puppet-latest.gem' - extra_steps: | - if [[ ${{ matrix.ruby }} == "2.7" ]]; then - gem install multi_json -v 1.15.0 - fi - os: 'macos-latest' os_type: 'macOS' env_set_cmd: 'export ' @@ -47,6 +43,9 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + - name: Circumvent multi_json 1.16.0 on ruby 2.7 + if: ${{ matrix.ruby == '2.7' }} + run: gem install multi_json -v 1.15.0 - name: Install the latest nightly build of puppet${{ matrix.puppet_version }} gem run: |