Test/add integration tests #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π§βπΎ Integration-Test | |
on: | |
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 |