mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
add testcase for Windows
This commit is contained in:
38
.github/workflows/go.yml
vendored
38
.github/workflows/go.yml
vendored
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user