diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f51703..3690a08 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,10 @@ jobs: name: Ruby ${{ matrix.ruby }} strategy: matrix: - ruby: - - '3.1' - - '3.3' + gemfile: [ test, jekyll3 ] + ruby: [ '3.1', '3.3' ] + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile steps: - uses: actions/checkout@v4 diff --git a/gemfiles/jekyll3.gemfile b/gemfiles/jekyll3.gemfile new file mode 100644 index 0000000..f6026a8 --- /dev/null +++ b/gemfiles/jekyll3.gemfile @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gem "jekyll", "~> 3.9" + +# Specify your gem's dependencies in jekyll_ai_related_posts.gemspec +gemspec :path => '../' + +gem "rake", "~> 13.0" + +gem "rspec", "~> 3.0" + +gem "rubocop", "~> 1.21" +gem "rubocop-rails-omakase", require: false + +gem "debug" diff --git a/gemfiles/test.gemfile b/gemfiles/test.gemfile new file mode 100644 index 0000000..18ef187 --- /dev/null +++ b/gemfiles/test.gemfile @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +# Specify your gem's dependencies in jekyll_ai_related_posts.gemspec +gemspec :path => '../' + +gem "rake", "~> 13.0" + +gem "rspec", "~> 3.0" + +gem "rubocop", "~> 1.21" +gem "rubocop-rails-omakase", require: false + +gem "debug"