Upgrade and secure the backport workflow (#547) (#548) #1068
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 for Compatibility | |
on: [push, pull_request] | |
jobs: | |
integration-test-compatibility: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
secured: ['true', 'false'] | |
entry: | |
- { opensearch_version: 1.1.0 } | |
- { opensearch_version: 1.2.0 } | |
- { opensearch_version: 1.2.1 } | |
- { opensearch_version: 1.2.2 } | |
- { opensearch_version: 1.2.3 } | |
- { opensearch_version: 1.2.4 } | |
- { opensearch_version: 1.3.0 } | |
- { opensearch_version: 1.3.1 } | |
- { opensearch_version: 2.0.0 } | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure sysctl 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: Runs OpenSearch cluster | |
run: | | |
export OPENSEARCH_VERSION=${{ matrix.entry.opensearch_version }} | |
export SECURE_INTEGRATION=${{ matrix.secured }} | |
make cluster.clean cluster.opensearch.build cluster.opensearch.start | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install | |
run: | | |
npm install | |
- name: Integration test without security | |
if: ${{ matrix.secured == 'false'}} | |
run: | | |
npm run test:integration:helpers | |
- name: Integration test with security | |
if: ${{ matrix.secured == 'true'}} | |
run: | | |
npm run test:integration:helpers-secure | |
- name: Stop the OpenSearch cluster | |
run: | | |
make cluster.opensearch.stop |