Bump golang.org/x/crypto from 0.0.0-20210322153248-0c34fe9e7dc2 to 0.17.0 in /internal/build #1
This file contains 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: Integration with Unreleased OpenSearch | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
entry: | |
- { opensearch_ref: '1.x' } | |
- { opensearch_ref: '2.0' } | |
- { opensearch_ref: '2.x' } | |
- { opensearch_ref: 'main' } | |
steps: | |
- name: Checkout OpenSearch | |
uses: actions/checkout@v2 | |
with: | |
repository: opensearch-project/OpenSearch | |
ref: ${{ matrix.entry.opensearch_ref }} | |
path: opensearch | |
- name: Assemble OpenSearch | |
run: | | |
cd opensearch | |
./gradlew assemble | |
# This step runs the docker image generated during gradle assemble in OpenSearch. It is tagged as opensearch:test. | |
# Reference: https://github.com/opensearch-project/OpenSearch/blob/2.0/distribution/docker/build.gradle#L190 | |
- name: Run Docker Image | |
run: | | |
docker run -p 9200:9200 -p 9600:9600 -d -e "discovery.type=single-node" -e "bootstrap.memory_lock=true" opensearch:test | |
sleep 90 | |
- name: Checkout Go Client | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: { go-version: '1.x' } | |
- 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 | |
- name: Integration test | |
run: make test-integ race=true |