add testcase for Windows

This commit is contained in:
p_caiwfeng
2022-02-05 19:57:24 +08:00
parent 2a8291568e
commit 6a0df3f300

View File

@@ -82,3 +82,41 @@ jobs:
- name: Test
run: go test -v ./test/
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Setup K3s
timeout-minutes: 30
uses: debianmaster/actions-k3s@master
id: k3s
with:
version: 'latest'
- name: Kubernetes info
run: |
kubectl cluster-info
cat ~/.kube/config
kubectl get pods -n kube-system -o wide
- name: Install demo bookinfo
run: kubectl apply -f https://raw.githubusercontent.com/wencaiwulue/kubevpn/master/samples/bookinfo.yaml
- name: Build
run: make kubevpn-macos
- 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
ifconfig
route -n
- name: Test
run: go test -v ./test/