-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.22 KB
/
test-integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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