Sha256: 51ff7835da65620dee394b4b17a9ced772a6701adcc90484a617b539f7ac4322

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

name: tests

on: [push, pull_request]

permissions:
  contents: read

jobs:
  build_and_test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.7', '3.0', '3.2']
    services:
      typesense:
        image: typesense/typesense:27.1
        ports:
          - 8108:8108
        volumes:
          - /tmp/typesense-data:/data
          - /tmp/typesense-analytics:/analytics
        env:
          TYPESENSE_API_KEY: xyz
          TYPESENSE_DATA_DIR: /data
          TYPESENSE_ENABLE_CORS: true
          TYPESENSE_ANALYTICS_DIR: /analytics
          TYPESENSE_ENABLE_SEARCH_ANALYTICS: true

    steps:
      - name: Wait for Typesense
        run: |
          timeout 20 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8108/health)" != "200" ]]; do sleep 1; done' || false
      - uses: actions/checkout@v3
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - run: bundle exec rubocop
      - run: bundle exec rspec --format documentation
      - uses: actions/upload-artifact@v3
        with:
          name: coverage
          path: coverage/
          retention-days: 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typesense-3.0.0.rc1 .github/workflows/tests.yml