From 0be592450dbcafefecebf4aa636d71bc81e1a70b Mon Sep 17 00:00:00 2001 From: busma13 Date: Wed, 29 May 2024 08:05:54 -0700 Subject: [PATCH] add k8sV2 e2e tests --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39830f3dbed..9cb2fc1c621 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -259,6 +259,48 @@ jobs: run: yarn --silent test:k8s --node-version ${{ matrix.node-version }} working-directory: ./e2e + e2e-k8s-v2-tests: + runs-on: ubuntu-latest + strategy: + # opensearch is finiky, keep testing others if it fails + fail-fast: false + matrix: + node-version: [18.19.1, 20.11.1] + 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: Compile e2e code + run: yarn build + working-directory: ./e2e + + - name: Install Kind and Kubectl + uses: helm/kind-action@v1.8.0 + with: + install_only: "true" + + - name: Test k8s V2 elasticsearch7 + run: yarn --silent test:k8sV2 --node-version ${{ matrix.node-version }} + working-directory: ./e2e + e2e-external-storage-tests: runs-on: ubuntu-latest strategy: