Skip to content

Commit

Permalink
[CI] Run Serverless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Jan 14, 2025
1 parent 5a4151b commit b529ac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ steps:
- touch ~/.elastic/cloud.json
- echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > ~/.elastic/cloud.json
- ./.buildkite/create-serverless.sh
- label: "Run :elasticsearch: Serverless :rspec: Tests :ruby:"
- label: "Run :elasticsearch: Serverless :rspec: Tests :ruby: {{ matrix.ruby_source }} {{ matrix.ruby }}"
key: run-serverless-tests
depends_on:
- step: create-serverless
Expand All @@ -61,6 +61,7 @@ steps:
RUBY_VERSION: "{{ matrix.ruby }}"
RUBY_SOURCE: "{{ matrix.ruby_source }}"
TEST_SUITE: serverless
ES_YAML_TESTS_BRANCH: main
QUIET: false
matrix:
setup:
Expand All @@ -73,6 +74,7 @@ steps:
ruby_source: 'jruby'
ruby: '9.4'
command: ./.buildkite/run-serverless-tests.sh
artifact_paths: "elasticsearch-api/tmp/*"
- label: "Destroy :elasticsearch: Serverless projects"
depends_on:
- step: run-serverless-tests
Expand Down
3 changes: 2 additions & 1 deletion .buildkite/run-serverless-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ docker build \

echo "--- :ruby: Running $TEST_SUITE tests"
docker run \
-u "$(id -u)" \
-e "ELASTIC_USER=elastic" \
-e "QUIET=${QUIET}" \
-e "BUILDKITE=${BUILDKITE}" \
Expand All @@ -33,4 +34,4 @@ docker run \
--name elasticsearch-ruby \
--rm \
elastic/elasticsearch-ruby \
bundle exec rake info
bundle exec bundle exec rake test:yaml

0 comments on commit b529ac9

Please sign in to comment.