Skip to content

Commit

Permalink
feat: add ruby 3.1 ci pipeline for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadYousaf authored and SaadYousaf committed Oct 3, 2023
1 parent 57a95ff commit 4946f2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: ['3.0.4']
ruby-version: ['3.0.4', '3.1.0']
mongodb-version: ['4.2.14']
include:
- ruby-version: 3.0.4
gemfile: Gemfile3
allow-failure: false
- ruby-version: 3.1.0
gemfile: Gemfile3
allow-failure: false
env:
SEARCH_SERVER_ES7: http://localhost:9200
MONGOHQ_URL: mongodb://localhost:27017/cs_comments_service_test
Expand Down Expand Up @@ -54,7 +57,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Configuring nokogiri gem to use native extensions
run: bundle config build.nokogiri --use-system-libraries

- name: Install packages required for nokogiri package
run: sudo apt-get install libxslt-dev libxml2-dev

- name: Install dependencies
run: bundle install
Expand Down
1 change: 1 addition & 0 deletions Gemfile3
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ gem 'mongoid_magic_counter_cache'
gem 'will_paginate_mongoid', "~>2.0"
gem 'rdiscount'
gem 'nokogiri', "~> 1.8.1"
gem 'pkg-config', "~> 1.1"

gem 'elasticsearch', '~> 7.8.0'
gem 'elasticsearch-model', '~> 7.1.0'
Expand Down

0 comments on commit 4946f2f

Please sign in to comment.