Skip to content

Commit

Permalink
Test supported Rubies on GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
erickguan committed Oct 26, 2024
1 parent 39ea07e commit 1e6d637
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci_bindings_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,27 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: ["3.1", "3.2", "3.3", "ruby-head"]

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/bindings/ruby/Gemfile

steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Setup Rust toolchain
uses: ./.github/actions/setup
- name: Bundle with rake
working-directory: "bindings/ruby"

- name: Run tests and lint
working-directory: bindings/ruby
run: |
bundle exec rake

0 comments on commit 1e6d637

Please sign in to comment.