diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa788be12..5412c6d35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,6 +102,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 + bundler-cache: true - uses: actions/download-artifact@v4 with: name: octicons-build @@ -131,6 +132,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 + bundler-cache: true - uses: actions/download-artifact@v4 with: name: octicons-gem @@ -154,6 +156,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 + bundler-cache: true - uses: actions/download-artifact@v4 with: name: octicons-gem diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa3da3dc7..3a95e93a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 + bundler-cache: true - name: Install dependencies run: | diff --git a/lib/octicons_helper/test/octicons_helper_test.rb b/lib/octicons_helper/test/octicons_helper_test.rb index dae94233f..3576ff7c5 100644 --- a/lib/octicons_helper/test/octicons_helper_test.rb +++ b/lib/octicons_helper/test/octicons_helper_test.rb @@ -22,7 +22,9 @@ it "caches SVGs for two calls with the same arguments" do OcticonsHelper.octicons_helper_cache = {} + # rubocop:disable Lint/BinaryOperatorWithIdenticalOperands assert octicon("alert").object_id == octicon("alert").object_id + # rubocop:enable Lint/BinaryOperatorWithIdenticalOperands OcticonsHelper.octicons_helper_cache = {} end end diff --git a/lib/octicons_jekyll/Rakefile b/lib/octicons_jekyll/Rakefile index d0c8cc911..c8fa66c8c 100644 --- a/lib/octicons_jekyll/Rakefile +++ b/lib/octicons_jekyll/Rakefile @@ -7,7 +7,7 @@ RuboCop::RakeTask.new(:lint) do |t| t.options = ["--display-cop-names"] end -task :version, [:v] do |t, args| +task :version, [:v] => :environment do |t, args| out = "# Prevent bundler errors\n"\ "module Liquid; class Tag; end; end\n\n"\ "module Jekyll\n"\