feat: enable test build on windows

This commit is contained in:
fengcaiwen
2023-06-15 14:25:17 +08:00
parent 75e2929f4a
commit 964ee73eb3
3 changed files with 14 additions and 40 deletions

View File

@@ -148,42 +148,16 @@ jobs:
- name: Test
run: go test -v -failfast ./... -timeout=60m
# windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.19
# # - run: |
# # choco install docker-desktop
# # docker version
# # docker run --rm hello-world
# - run: |
# choco install virtualbox
# choco install minikube
# minikube start --driver=virtualbox
# minikube kubectl -- get po -A
# choco install make
# - name: Kubernetes info
# run: |
# kubectl cluster-info dump
# kubectl get pods -n kube-system -o wide
# - name: Install demo bookinfo
# run: kubectl apply -f https://raw.githubusercontent.com/KubeNetworks/kubevpn/master/samples/bookinfo.yaml
#
# - name: Build
# run: make kubevpn-windows
#
# - name: Wait for pods reviews to be ready
# run: |
# kubectl wait pods -l app=reviews --for=condition=Ready --timeout=600s
# kubectl get all -o wide
# kubectl get nodes -o yaml
# ipconfig
#
# - name: Test
# run: go test -v ./... -timeout=60m
windows:
runs-on: windows-latest
needs: [ "image" ]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Build
run: make kubevpn-windows-amd64