Skip to content

Update chart versions with release #24

Update chart versions with release

Update chart versions with release #24

Workflow file for this run

name: E2E Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions: {}
jobs:
docker:
name: Docker E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Env"
uses: ./.github/actions/setup-env
- name: Compose up
shell: devenv shell bash -- -e {0}
run: |
MYSQL_PASSWORD='test123' yarn nx compose:up
- name: Test
shell: devenv shell bash -- -e {0}
run: |
CYPRESS_BASE_URL='http://localhost:8888' yarn nx test e2e
- name: Compose down
shell: devenv shell bash -- -e {0}
run: |
MYSQL_PASSWORD='test123' yarn nx compose:up
kubernetes:
name: Kubernetes E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Env"
uses: ./.github/actions/setup-env
- name: Build images
shell: devenv shell bash -- -e {0}
run: |
yarn nx run-many -t container --projects=tag:service \
--tags public.ecr.aws/aws-containers/retail-store-sample-{projectName}:e2e --parallel=5
- name: Kind cluster
uses: helm/[email protected]
with:
cluster_name: kind
version: v0.17.0
- name: Load images
env:
IMAGE_TAG: e2e
run: |
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-catalog:$IMAGE_TAG
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-cart:$IMAGE_TAG
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-checkout:$IMAGE_TAG
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-orders:$IMAGE_TAG
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-ui:$IMAGE_TAG
- name: Deploy
shell: devenv shell bash -- -e {0}
env:
IMAGE_TAG: e2e
run: |
NODE_PORT=30000 helmfile apply -f deploy/kubernetes/helmfile.yaml --wait --skip-diff-on-install
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/owner=retail-store-sample --timeout 180s
- name: Test
shell: devenv shell bash -- -e {0}
run: |
bash scripts/e2e-kind.sh