File tree Expand file tree Collapse file tree 3 files changed +50
-11
lines changed Expand file tree Collapse file tree 3 files changed +50
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Minikube on Windows
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ minikube :
10
+ runs-on : windows-latest
11
+
12
+ steps :
13
+ - name : Check out repository
14
+ uses : actions/checkout@v3
15
+
16
+ # - name: Install Chocolatey
17
+ # run: |
18
+ # Set-ExecutionPolicy Bypass -Scope Process -Force;
19
+ # [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
20
+ # iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
21
+
22
+ - name : Install Minikube and kubectl
23
+ run : |
24
+ choco install minikube kubernetes-cli -y
25
+ minikube version
26
+ kubectl version --client
27
+
28
+ - name : Start Minikube
29
+ run : |
30
+ minikube start --driver=hyperv --hyperv-virtual-switch "Default Switch"
31
+ minikube status
32
+
33
+ - name : Run Kubernetes Commands
34
+ run : |
35
+ kubectl get nodes
36
+ kubectl get pods -A
37
+
38
+ - name : Stop Minikube
39
+ run : |
40
+ minikube stop
Original file line number Diff line number Diff line change 29
29
push :
30
30
jobs :
31
31
run :
32
- runs-on : windows-latest
33
- # services:
34
- # docker:
35
- # image: docker:dind
36
- # options: --privileged --shm-size=2g
32
+ runs-on : ubuntu-22.04
33
+ services :
34
+ docker :
35
+ image : docker:dind
36
+ options : --privileged --shm-size=2g
37
37
steps :
38
38
- name : Check out branch
39
39
uses : actions/checkout@v4
@@ -55,17 +55,16 @@ jobs:
55
55
maven-version : ' 3.9.0'
56
56
- name : Set up Helm
57
57
58
- # - name: Create k8s Kind Cluster
59
- # uses: helm/kind-action@v1
60
- # with:
61
- # install_only: false
58
+ - name : Set up KinD
59
+ uses : helm/kind-action@v1
60
+ with :
61
+ install_only : false
62
62
- name : Run PiT
63
63
shell : bash
64
64
env :
65
65
CC_KEY : ${{ secrets.CC_KEY }}
66
66
CC_CERT : ${{ secrets.CC_CERT }}
67
67
run : |
68
- choco install kind -y
69
68
[ -n "${{ inputs.skipcurrent }}" ] && A="$A --skip-current"
70
69
[ -n "${{ inputs.skipdev }}" ] && A="$A --skip-dev"
71
70
[ -n "${{ inputs.debug }}" ] && A="$A --debug"
Original file line number Diff line number Diff line change 1
1
name : Test Kubernetes on Local Kind Cluster
2
2
on :
3
- push :
3
+ workflow_dispatch :
4
4
jobs :
5
5
test-k8s :
6
6
runs-on : windows-latest
You can’t perform that action at this time.
0 commit comments