File tree Expand file tree Collapse file tree 3 files changed +48
-11
lines changed Expand file tree Collapse file tree 3 files changed +48
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Minikube on Windows
2
+
3
+ on :
4
+ push :
5
+
6
+ jobs :
7
+ minikube :
8
+ runs-on : windows-latest
9
+
10
+ steps :
11
+ - name : Check out repository
12
+ uses : actions/checkout@v3
13
+
14
+ # - name: Install Chocolatey
15
+ # run: |
16
+ # Set-ExecutionPolicy Bypass -Scope Process -Force;
17
+ # [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
18
+ # iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
19
+
20
+ - name : Install Minikube and kubectl
21
+ run : |
22
+ choco install minikube kubernetes-cli -y
23
+ minikube version
24
+ kubectl version --client
25
+
26
+ - name : Start Minikube
27
+ run : |
28
+ minikube start --driver=hyperv --hyperv-virtual-switch "Default Switch"
29
+ minikube status
30
+
31
+ - name : Run Kubernetes Commands
32
+ run : |
33
+ kubectl get nodes
34
+ kubectl get pods -A
35
+
36
+ - name : Stop Minikube
37
+ run : |
38
+ 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