From 40b9c8cd93750fb6cd092316ae2dff2af4a9d96f Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 22 Dec 2024 00:32:10 +0100 Subject: [PATCH] Require puppet-strings rake tasks In lib/voxpupuli/release/rake_tasks.rb we call the puppet-strings rake tasks. To make this work, we actually need to require puppet-strings first. This usually works fine by accident in our modules because puppetlabs_spec_helper is loaded. --- .github/workflows/test.yml | 4 ++-- lib/voxpupuli/release/rake_tasks.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b76d403..80e2a58 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,8 +40,8 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - name: Run tests - run: bundle exec rake --rakefile Rakefile_ci -T | grep release + - name: check that required tasks are available + run: bundle exec rake --rakefile Rakefile_ci -T | grep --regexp 'rake strings' --regexp 'rake release' --quiet - name: Verify gem builds run: gem build --strict --verbose *.gemspec diff --git a/lib/voxpupuli/release/rake_tasks.rb b/lib/voxpupuli/release/rake_tasks.rb index 51a65d2..b95372b 100644 --- a/lib/voxpupuli/release/rake_tasks.rb +++ b/lib/voxpupuli/release/rake_tasks.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require 'puppet_blacksmith/rake_tasks' +require 'puppet-strings/tasks' class GCGConfig class << self