mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-02 01:55:03 +08:00
Merge #3813
3813: Fix SDK CI for scheduled jobs r=curquiza a=curquiza The SDK CI does not run for the scheduled job (`cron`) every day, and only works for manual triggers. I added a job to define the Docker image we use depending on the event: `worflow_dispatch` = manual triggering, or `scheduled` = cron jobs Co-authored-by: curquiza <clementine@meilisearch.com>
This commit is contained in:
commit
4829348d6e
21
.github/workflows/sdks-tests.yml
vendored
21
.github/workflows/sdks-tests.yml
vendored
@ -16,8 +16,23 @@ env:
|
|||||||
MEILI_NO_ANALYTICS: 'true'
|
MEILI_NO_ANALYTICS: 'true'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
define-docker-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
docker-image: ${{ steps.define-image.outputs.docker-image }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Define the Docker image we need to use
|
||||||
|
id: define-image
|
||||||
|
run: |
|
||||||
|
event=${{ github.event.action }}
|
||||||
|
echo "docker-image=nightly" >> $GITHUB_OUTPUT
|
||||||
|
if [[ $event == 'workflow_dispatch' ]]; then
|
||||||
|
echo "docker-image=${{ github.event.inputs.docker_image }}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
meilisearch-js-tests:
|
meilisearch-js-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: JS SDK tests
|
name: JS SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -52,6 +67,7 @@ jobs:
|
|||||||
run: yarn test:env:browser
|
run: yarn test:env:browser
|
||||||
|
|
||||||
instant-meilisearch-tests:
|
instant-meilisearch-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: instant-meilisearch tests
|
name: instant-meilisearch tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -78,6 +94,7 @@ jobs:
|
|||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
meilisearch-php-tests:
|
meilisearch-php-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: PHP SDK tests
|
name: PHP SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -108,6 +125,7 @@ jobs:
|
|||||||
composer remove --dev guzzlehttp/guzzle http-interop/http-factory-guzzle
|
composer remove --dev guzzlehttp/guzzle http-interop/http-factory-guzzle
|
||||||
|
|
||||||
meilisearch-python-tests:
|
meilisearch-python-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: Python SDK tests
|
name: Python SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -132,6 +150,7 @@ jobs:
|
|||||||
run: pipenv run pytest
|
run: pipenv run pytest
|
||||||
|
|
||||||
meilisearch-go-tests:
|
meilisearch-go-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: Go SDK tests
|
name: Go SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -161,6 +180,7 @@ jobs:
|
|||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
meilisearch-ruby-tests:
|
meilisearch-ruby-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: Ruby SDK tests
|
name: Ruby SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -185,6 +205,7 @@ jobs:
|
|||||||
run: bundle exec rspec
|
run: bundle exec rspec
|
||||||
|
|
||||||
meilisearch-rust-tests:
|
meilisearch-rust-tests:
|
||||||
|
needs: define-docker-image
|
||||||
name: Rust SDK tests
|
name: Rust SDK tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
|
Loading…
Reference in New Issue
Block a user