Sha256: 0d9c5c28d662f54acf40f3c2311f04b2713d14b24be8c6ab925794496bae7c15

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

name: build-os

on: [push]
env:
  ENGINE_NAME: opensearch
  REST_API_SPEC_REPO: opensearch-project/OpenSearch

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        # https://github.com/opensearch-project/OpenSearch/releases
        search_versions:
          - 2.17.1
          - 2.16.0
          - 2.15.0
          - 2.14.0
          - 2.13.0
          - 2.12.0
          - 2.11.1
          - 2.10.0
          - 2.9.0
          - 2.8.0
          - 2.7.0
          - 2.6.0
          - 2.5.0
          - 2.4.1
          - 2.3.0
          - 2.2.1
          - 2.1.0
          - 2.0.1
          - 1.3.6
          - 1.2.4
          - 1.1.0
          - 1.0.0
    services:
      opensearch:
        image: opensearchproject/opensearch:${{matrix.search_versions}}
        ports:
          - 9200:9200
        env:
          discovery.type: single-node
          plugins.security.disabled: true
          OPENSEARCH_INITIAL_ADMIN_PASSWORD: StrongPassowrd123
    steps:
      - name: Configure sysctl limits
        run: |
          sudo swapoff -a
          sudo sysctl -w vm.swappiness=1
          sudo sysctl -w fs.file-max=262144
          sudo sysctl -w vm.max_map_count=262144
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.2"
          bundler-cache: true
      - name: Wait for OpenSearch
        run: timeout 60 bash -c "until curl --silent --output /dev/null 'localhost:9200/_cat/health?h=st'; do printf '.'; sleep 5; done; printf '\n'"
      - run: bundle exec rspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antbird-0.13.0 .github/workflows/build-os.yml