Skip to content

Commit

Permalink
add JRuby 9.4 to the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 27, 2024
1 parent 2cd62dc commit fe47f1e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: ruby
version: '2.7'
alias: ruby-27
- name: jruby
version: '9.4'
alias: jruby-94
container:
image: ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}
outputs:
Expand All @@ -41,6 +44,7 @@ jobs:
ruby-31-matrix: "${{ steps.set-matrix.outputs.ruby-31 }}"
ruby-30-matrix: "${{ steps.set-matrix.outputs.ruby-30 }}"
ruby-27-matrix: "${{ steps.set-matrix.outputs.ruby-27 }}"
jruby-94-matrix: "${{ steps.set-matrix.outputs.jruby-94 }}"
steps:
- uses: actions/checkout@v4
- run: bundle install
Expand Down Expand Up @@ -197,3 +201,26 @@ jobs:
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-jruby-94:
name: 'jruby-9.4: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.jruby-94-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/jruby:9.4
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-jruby-94
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
2 changes: 1 addition & 1 deletion tasks/github.rake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace :github do
"ruby:3.1",
"ruby:3.0",
"ruby:2.7",
# "jruby:9.4",
"jruby:9.4",
].map do |runtime|
engine, version = runtime.split(':')
runtime_alias = "#{engine}-#{version.gsub('.', '')}"
Expand Down

0 comments on commit fe47f1e

Please sign in to comment.