From 3b3daf5c5996dc0a6e1e0ad3dd3274d03054e9bb Mon Sep 17 00:00:00 2001 From: Mike Kasberg Date: Tue, 23 Apr 2024 14:47:41 -0600 Subject: [PATCH] Gemfile test matrix We're accomplishing two things here: - `current.gemfile` makes it so `Gemfile.lock` doesn't get used, and we'll know if a dependency update breaks things. - `jekyll3.gemfile` lets us test with Jekyll 3. --- .github/workflows/main.yml | 9 +++++---- gemfiles/current.gemfile | 15 +++++++++++++++ gemfiles/jekyll3.gemfile | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 gemfiles/current.gemfile create mode 100644 gemfiles/jekyll3.gemfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f51703..54bd695 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,13 @@ on: jobs: build: runs-on: ubuntu-latest - name: Ruby ${{ matrix.ruby }} + name: Ruby ${{ matrix.ruby }}, Gemfile ${{ matrix.gemfile }} strategy: matrix: - ruby: - - '3.1' - - '3.3' + gemfile: [ current, jekyll3 ] + ruby: [ '3.1', '3.3' ] + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile steps: - uses: actions/checkout@v4 diff --git a/gemfiles/current.gemfile b/gemfiles/current.gemfile new file mode 100644 index 0000000..18ef187 --- /dev/null +++ b/gemfiles/current.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" diff --git a/gemfiles/jekyll3.gemfile b/gemfiles/jekyll3.gemfile new file mode 100644 index 0000000..4298e6f --- /dev/null +++ b/gemfiles/jekyll3.gemfile @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gem "jekyll", "~> 3.9" +gem "kramdown-parser-gfm" + +# 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"