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:

- `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.
  • Loading branch information
mkasberg committed Apr 23, 2024
1 parent 1d5fa7c commit 6ccdf77
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions gemfiles/current.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 path: '../'

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

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

gem "debug"
18 changes: 18 additions & 0 deletions gemfiles/jekyll3.gemfile
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 6ccdf77

Please sign in to comment.