Skip to content

Commit

Permalink
add k8sV2 e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed May 29, 2024
1 parent fb09854 commit 0be5924
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0be5924

Please sign in to comment.