Skip to content

Commit

Permalink
Gemfile test matrix
Browse files Browse the repository at this point in the history
We're accomplishing two things here:

- `test.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.
  • Loading branch information
mkasberg committed Apr 23, 2024
1 parent 1d5fa7c commit c385313
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions gemfiles/jekyll3.gemfile
Original file line number Diff line number Diff line change
@@ -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

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "rubocop", "~> 1.21"
gem "rubocop-rails-omakase", require: false

gem "debug"
15 changes: 15 additions & 0 deletions gemfiles/test.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Specify your gem's dependencies in jekyll_ai_related_posts.gemspec
gemspec

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "rubocop", "~> 1.21"
gem "rubocop-rails-omakase", require: false

gem "debug"

0 comments on commit c385313

Please sign in to comment.