Skip to content

chore(deps-dev): bump org.testcontainers:junit-jupiter from 1.19.6 to 1.20.1 in /retail-store-sample-app/src/cart #156

chore(deps-dev): bump org.testcontainers:junit-jupiter from 1.19.6 to 1.20.1 in /retail-store-sample-app/src/cart

chore(deps-dev): bump org.testcontainers:junit-jupiter from 1.19.6 to 1.20.1 in /retail-store-sample-app/src/cart #156

Workflow file for this run

name: E2E Test
on:
push:
branches:
- main
paths:
- 'retail-store-sample-app/**'
pull_request:
branches:
- main
paths:
- 'retail-store-sample-app/**'
workflow_dispatch:
jobs:
docker:
name: Docker E2E Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: e2e-buildx
uses: docker/setup-buildx-action@v2
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v2
- name: Set up QEMU
id: e2e-qemu
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Build Images
run: |
retail-store-sample-app/scripts/build-image.sh -t e2e
- name: Run Tests
run: |
(cd retail-store-sample-app/deploy/docker-compose && TAG=e2e MYSQL_PASSWORD='test123' docker-compose up -d)
(bash retail-store-sample-app/scripts/e2e-compose.sh)
(cd retail-store-sample-app/deploy/docker-compose && docker-compose down)
kubernetes:
name: Kubernetes E2E Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: e2e-buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
id: e2e-qemu
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Build Images
run: |
retail-store-sample-app/scripts/build-image.sh -r 'public.ecr.aws/aws-containers' -t e2e
- name: Setup helmfile
uses: mamezou-tech/[email protected]
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
cluster_name: kind
version: v0.17.0
- name: Deploy
env:
IMAGE_TAG: e2e
run: |
kind load docker-image public.ecr.aws/aws-containers/retail-store-sample-assets:$IMAGE_TAG
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
(cd retail-store-sample-app/deploy/kubernetes/charts && helmfile apply --wait)
sleep 60
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
name: ui-nodeport
spec:
type: NodePort
selector:
app.kubernetes.io/name: ui
app.kubernetes.io/instance: ui
app.kubernetes.io/component: service
ports:
- port: 80
targetPort: http
nodePort: 30000
EOF
- name: Test
run: |
bash retail-store-sample-app/scripts/e2e-kind.sh