Skip to content

ci(test): upgrade garden pipeline #67

ci(test): upgrade garden pipeline

ci(test): upgrade garden pipeline #67

name: πŸ§‘β€πŸŒΎ Integration-Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
Test-on-cluster:
runs-on: ubuntu-latest
steps:
- name: πŸš€ Install Kind Cluster
uses: helm/[email protected]
with:
install_only: true
- name: 🐳 Create cluster with ingress
run: |
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
EOF
- name: 🐟 set kubectl context
run: echo "KUBE_CONTEXT=$(kubectl config current-context)" >> $GITHUB_ENV
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
- name: 🌱 Run integration test with garden.io
uses: garden-io/garden-action@v2
with:
command: test