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 92f753f
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
name: πŸ§‘β€πŸŒΎ Integration-Test
on:
push:
pull_request:
workflow_dispatch:

jobs:
Test-on-cluster:
runs-on: ubuntu-latest
steps:
- name: πŸš€ Testing on a k8s Kind Cluster
- 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/[email protected]
- run: |
cat $HOME/.kube/config
- name: 🌱 Deploy preview env with Garden
uses: garden-io/[email protected]
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 92f753f

Please sign in to comment.