Skip to content

chore(deps): update actions/checkout action to v5 - autoclosed #9

chore(deps): update actions/checkout action to v5 - autoclosed

chore(deps): update actions/checkout action to v5 - autoclosed #9

# verify with local kind k8s cluster.
name: Argo workflow E2E test
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- "argo/workflow/**"
- ".github/workflows/argo_workflow_*"
jobs:
kubernetes:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
feature: [workflow, workflow-template, cron-workflow]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Kubernetes
uses: engineerd/setup-kind@v0.5.0
with:
# renovate: datasource=go depName=sigs.k8s.io/kind
version: v0.11.0
- name: Install Argo Workflow in Kubernetes Kind
run: |
kubectl create namespace argo
kubectl -n argo apply -f https://raw.githubusercontent.com/argoproj/argo-workflows/master/manifests/quick-start-postgres.yaml
# wait all be ready
kubectl -n argo wait deploy --all --for condition=Available --timeout 5m
- name: Create ${{ matrix.feature }} feature data
run: kubectl -n argo create -f argo/workflow/${{ matrix.feature }}
- name: Waitting for verify cron workflows condition.
if: matrix.feature == 'cron-workflow'
run: |
# wait until cron-workflow dispatched workflow
until kubectl -n argo get workflows | egrep 'test-cron-wf-[0-9]+' | grep Running
do
sleep 1
done
- name: Verify ${{ matrix.feature }} feature
run: kubectl -n argo wait workflows --all --for condition=Completed --timeout 2m
- name: Debug failure
if: failure()
run: |
kubectl -n argo get all
kubectl -n argo describe all