Skip to content

Add Kubernetes e2e tests using kind #1

Add Kubernetes e2e tests using kind

Add Kubernetes e2e tests using kind #1

Workflow file for this run

name: Teraslice CI Tests
# this will technically run again on merge to master, should limit it
on:
pull_request:
branches: [ master ]
jobs:
e2e-k8s-tests:
runs-on: ubuntu-latest
strategy:
# opensearch is finiky, keep testing others if it fails
fail-fast: false
matrix:
node-version: [16.19.1, 18.16.0]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false --silent"
- name: Install Kind and Kubectl
uses: helm/[email protected]
with:
install_only: "true"
- name: Test k8s elasticsearch7
run: yarn --silent test:k8s --node-version ${{ matrix.node-version }}
working-directory: ./e2e