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 <git@manuelruck.de>
  • Loading branch information
Manuel Ruck committed Jun 13, 2024
1 parent 5e9803e commit b80fbe4
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,36 @@ jobs:
Test-on-cluster:
runs-on: ubuntu-latest
steps:
- name: πŸš€ Testing on a k8s Kind Cluster
- name: πŸš€ Install Kind Cluster
uses: helm/kind-action@v1.10.0
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@v3.0.2
- run: |
cat $HOME/.kube/config
- name: 🌱 Deploy preview env with Garden
uses: garden-io/garden-action@v1.2
uses: actions/checkout@v4
- name: 🌱 Run integration test with garden.io
uses: garden-io/garden-action@v2
with:
command: test
kubeconfig-location: $HOME/.kube/config
- run: |
cat $HOME/.kube/config

0 comments on commit b80fbe4

Please sign in to comment.