From 8abc7485d25d9eb51693218f611d5cb57f97e95a Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 28 Mar 2024 13:31:32 -0400 Subject: [PATCH] Pin remote_execution and foreman_ansible to Foreman 3.9 versions --- .github/workflows/ruby_tests.yml | 5 +++++ gemfile.d/lock.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 gemfile.d/lock.rb diff --git a/.github/workflows/ruby_tests.yml b/.github/workflows/ruby_tests.yml index 4b4b1411..eaa632e9 100644 --- a/.github/workflows/ruby_tests.yml +++ b/.github/workflows/ruby_tests.yml @@ -23,9 +23,14 @@ jobs: matrix: foreman: - 3.9-stable + katello: + - KATELLO-4.11 uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0 with: plugin: foreman_rh_cloud postgresql_container: ghcr.io/theforeman/postgresql-evr test_existing_database: false foreman_version: ${{ matrix.foreman }} + environment_variables: | + FOREMAN_VERSION=${{ matrix.foreman }} + KATELLO_VERSION=${{ matrix.katello }} diff --git a/gemfile.d/lock.rb b/gemfile.d/lock.rb new file mode 100644 index 00000000..77d305b1 --- /dev/null +++ b/gemfile.d/lock.rb @@ -0,0 +1,5 @@ +case ENV['FOREMAN_VERSION'] +when '3.9-stable' + gem "foreman_remote_execution", "< 13" + gem "foreman_ansible", "< 14" +end