mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Fix SDK CI for scheduled jobs
This commit is contained in:
parent
f517274d1f
commit
b6b6a80b76
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