Skip to content

E2E

E2E #7

Workflow file for this run

name: E2E
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
name: Smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy nantian-gw
run: |
kubectl apply -k deploy/kubernetes/overlays/kind-conformance
kubectl wait --for=condition=ready pod --all -n nantian-gw --timeout=300s
- name: Record image versions
run: |
echo "=== Images under test ==="
kubectl get pods -n nantian-gw -o json | jq -r '.items[] | .spec.containers[] | " \(.name): \(.image)"'
echo "=== Image digests ==="
kubectl get pods -n nantian-gw -o json | jq -r '.items[] | .status.containerStatuses[] | " \(.name): \(.imageID)"'
- name: Run smoke test
run: |
CLUSTER_NAME=e2e ./test/e2e/smoke/run.sh --no-cleanup
- name: Collect logs on failure
if: failure()
run: |
kubectl describe pods -n nantian-gw
kubectl logs -n nantian-gw --all-containers --tail=200
- name: Cleanup
if: always()
run: kind delete cluster --name e2e