-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manuel Ruck <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
10 deletions.
There are no files selected for viewing
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
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 |