Skip to content

Commit

Permalink
ci(test): upgrade garden pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Jun 13, 2024
1 parent 5e9803e commit cd25c96
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,34 @@ jobs:
steps:
- name: 🚀 Testing on a k8s Kind Cluster
uses: helm/[email protected]
with:
install_only: true
- name: 🐳 Create cluster
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/[email protected]
- run: |
cat $HOME/.kube/config
- name: 🌱 Deploy preview env with Garden
uses: garden-io/garden-action@v1.2
uses: garden-io/garden-action@v2
with:
command: test
kubeconfig-location: $HOME/.kube/config
- run: |
cat $HOME/.kube/config

0 comments on commit cd25c96

Please sign in to comment.