Skip to content

Add auto-initialization with default config #15

Add auto-initialization with default config

Add auto-initialization with default config #15

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} + Typesense ${{ matrix.typesense }}
strategy:
matrix:
ruby:
- '2.7.8'
- '3.0.6'
- '3.1.4'
- '3.2.2'
typesense:
- '0.24.1'
- '0.23.1'
- '0.22.1'
services:
typesense:
image: typesense/typesense:${{ matrix.typesense }}
ports:
- 8108:8108
env:
TYPESENSE_API_KEY: xyz
TYPESENSE_DATA_DIR: /data
volumes:
- typesense_data:/data
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the test suite
run: bundle exec rake spec
- name: Publish code coverage
uses: paambaati/[email protected]
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}