Fix broken tests after v1.4 #266
Workflow file for this run
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
# Testing the code base against the Meilisearch pre-releases | |
name: Pre-Release Tests | |
# Will only run for PRs and pushes to bump-meilisearch-v* | |
on: | |
push: | |
branches: bump-meilisearch-v* | |
pull_request: | |
branches: bump-meilisearch-v* | |
jobs: | |
integration_tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: ['2.6', '2.7', '3.0'] | |
name: integration-tests-against-rc (ruby ${{ matrix.ruby-version }}) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install ruby dependencies | |
run: bundle install --with test | |
- name: Get the latest Meilisearch RC | |
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV | |
- name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker | |
run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} meilisearch --master-key=masterKey --no-analytics | |
- name: Run test suite | |
run: bundle exec rspec |