Skip to content

[Backport][8.19][Tests] Updates OpenTelemetry tests for updated conventions #114

[Backport][8.19][Tests] Updates OpenTelemetry tests for updated conventions

[Backport][8.19][Tests] Updates OpenTelemetry tests for updated conventions #114

Workflow file for this run

name: 8.19
on:
push:
branches:
- 8.19
pull_request:
branches:
- 8.19
jobs:
test-main:
env:
TEST_ES_SERVER: http://localhost:9250
PORT: 9250
strategy:
fail-fast: false
matrix:
ruby: ['3.2', '3.3', '3.4', '4.0', 'jruby-9.3', 'jruby-9.4', 'jruby-10']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increase system limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.19.14-SNAPSHOT
security-enabled: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# Workaround for https://github.com/actions/runner-images/issues/13647
- name: Fix gem directory permissions
run: sudo chmod +t $(ruby -e 'puts Gem.default_dir')/gems
- name: Build
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
rake bundle:clean
rake bundle:install
- name: elasticsearch
run: cd elasticsearch && bundle exec rake test:all
- name: elasticsearch-api
run: rake es:download_artifacts[8.19.14-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:spec test:platinum:unit