Release 1.0.0 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |