From b6b6a80b7619737de39a1e4f25aa75a3d224fdce Mon Sep 17 00:00:00 2001 From: curquiza Date: Tue, 6 Jun 2023 10:38:05 +0200 Subject: [PATCH] Fix SDK CI for scheduled jobs --- .github/workflows/sdks-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/sdks-tests.yml b/.github/workflows/sdks-tests.yml index fedcb9997..f625ab333 100644 --- a/.github/workflows/sdks-tests.yml +++ b/.github/workflows/sdks-tests.yml @@ -16,8 +16,23 @@ env: MEILI_NO_ANALYTICS: 'true' 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: + needs: define-docker-image name: JS SDK tests runs-on: ubuntu-latest services: @@ -52,6 +67,7 @@ jobs: run: yarn test:env:browser instant-meilisearch-tests: + needs: define-docker-image name: instant-meilisearch tests runs-on: ubuntu-latest services: @@ -78,6 +94,7 @@ jobs: run: yarn build meilisearch-php-tests: + needs: define-docker-image name: PHP SDK tests runs-on: ubuntu-latest services: @@ -108,6 +125,7 @@ jobs: composer remove --dev guzzlehttp/guzzle http-interop/http-factory-guzzle meilisearch-python-tests: + needs: define-docker-image name: Python SDK tests runs-on: ubuntu-latest services: @@ -132,6 +150,7 @@ jobs: run: pipenv run pytest meilisearch-go-tests: + needs: define-docker-image name: Go SDK tests runs-on: ubuntu-latest services: @@ -161,6 +180,7 @@ jobs: run: go test -v ./... meilisearch-ruby-tests: + needs: define-docker-image name: Ruby SDK tests runs-on: ubuntu-latest services: @@ -185,6 +205,7 @@ jobs: run: bundle exec rspec meilisearch-rust-tests: + needs: define-docker-image name: Rust SDK tests runs-on: ubuntu-latest services: