[API] Generates 4d3b72eea82e09226241e8b6837c8a1c15d02eca specification #2669
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-main: | |
| env: | |
| TEST_ES_SERVER: http://localhost:9250 | |
| PORT: 9250 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ['head', '3.2', '3.3', '3.4', 'jruby-9.3', 'jruby-9.4', 'jruby-10.0'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| persist-credentials: false | |
| - 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: 9.3.0-SNAPSHOT | |
| - uses: ruby/[email protected] | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - 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[9.3.0-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all |