meilisearch / mini-dashboard

mini-dashboard for Meilisearch

Home Page:https://edge-preview-meili.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI tests should run automatically on latest release or pre-release of MeiliSearch

mdubus opened this issue · comments

For the moment, in tests.yml I have hard-coded the version of MeiliSearch, on which to launch the tests.

 services:
      meilisearch:
        image: getmeili/meilisearch:v0.24.0rc2
        env:
          MEILI_MASTER_KEY: 'masterKey'
          MEILI_NO_ANALYTICS: 'true'
        ports:
          - '7700:7700'

This means that on every release, or pre-release I have to manually update the version.
We should find a way to automate the version update.

There are two possibilities to run a specific version of meilisearch.

Either through the latest rc script, for example in meilisearch-js

Either through the normal docker service as per example in meilisearch-js

The way it works in these repositories is that, based on the branch naming, it will either run the tests of the latest release or the latest rc.
To implement this, you just need to create a second workflow file, but this one would use the latest rc script and trigger based on a branch naming.

Or, you consider that testing against the rc's is enough in which case just change the way you trigger Meilisearch with this example