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 81e11c7 commit bcdfc8c
Showing 1 changed file with 10 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

0 comments on commit bcdfc8c

Please sign in to comment.