diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c89505..ead37f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,10 @@ jobs: run: | echo "BUNDLE_WITH=checks:docs" >> $GITHUB_ENV if: matrix.ruby == 3.3 + - name: Set bundler environment variables + run: | + echo "BUNDLE_WITH=dokaz" >> $GITHUB_ENV + if: matrix.ruby == 3.2 # Use 'bundler-cache: true' instead of actions/cache as advised: # * https://github.com/actions/cache/blob/main/examples.md#ruby---bundler @@ -46,11 +50,12 @@ jobs: - run: bundle exec rubocop if: matrix.ruby == 3.3 - - run: | - bundle exec yard doctest - bundle exec dokaz + - run: bundle exec yard doctest if: matrix.ruby == 3.3 + - run: bundle exec dokaz + if: matrix.ruby == 3.2 # Does not yet work on Ruby 3.3+ + - name: Run benchmarks on Ruby 2.7 or 3.3 run: | BUNDLE_GEMFILE=benchmarks/Gemfile bundle install --jobs 4 --retry 3 diff --git a/Gemfile b/Gemfile index f3ad440..6a2c948 100644 --- a/Gemfile +++ b/Gemfile @@ -24,13 +24,17 @@ end # Excluded from CI except on latest MRI Ruby, to reduce compatibility burden group :docs, optional: true do - gem "dokaz", "~> 0.0.5" gem "redcarpet", "~> 3.6" gem "webrick", "~> 1.8" gem "yard", "~> 0.9" gem "yard-doctest", "~> 0.1" end +# Excluded from CI except on the latest Ruby version that supports dokaz +group :dokaz, optional: true do + gem "dokaz", "~> 0.0.5" +end + # Optional, only used locally to release to rubygems.org group :release, optional: true do gem "rake"