WIP: adding testing action for windows + kind #1
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: Test Kubernetes on Local Kind Cluster | |
on: | |
push: | |
jobs: | |
test-k8s: | |
runs-on: windows-latest | |
steps: | |
- name: Verify Docker Installation | |
run: docker --version | |
- name: Start Docker Service | |
run: Start-Service docker | |
- name: Install Kind | |
run: | | |
curl -Lo kind.exe https://kind.sigs.k8s.io/dl/v0.20.0/kind-windows-amd64 | |
move kind.exe C:\kind.exe | |
- name: Install kubectl | |
run: | | |
curl -LO "https://dl.k8s.io/release/v1.28.0/bin/windows/amd64/kubectl.exe" | |
move kubectl.exe C:\kubectl.exe | |
- name: Create Kind Cluster | |
run: | | |
C:\kind.exe create cluster --name kind-cluster | |
- name: Verify Kind Cluster | |
run: | | |
C:\kind.exe get clusters | |
- name: Configure kubectl for Kind | |
run: | | |
C:\kind.exe export kubeconfig --name kind-cluster | |
C:\kubectl.exe cluster-info | |
- name: Deploy to Kubernetes | |
run: | | |
C:\kubectl.exe apply -f deployment.yaml | |
- name: Verify Deployment | |
run: | | |
C:\kubectl.exe get pods |