Add Windows job to GH workflows

This commit is contained in:
Ciprian Hacman 2020-08-10 18:26:17 +03:00
parent ea2d0da1cc
commit 9995940677
2 changed files with 22 additions and 0 deletions

View File

@ -46,6 +46,24 @@ jobs:
run: |
make kops examples test
build-windows-amd64:
runs-on: windows-2019
steps:
- name: Set up go
uses: actions/setup-go@v2
with:
go-version: 1.15.0-rc2
stable: false
- uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
make kops examples test-windows
verify:
runs-on: ubuntu-20.04
steps:

View File

@ -176,6 +176,10 @@ hooks: # Install Git hooks
test: ${BINDATA_TARGETS} # Run tests locally
go test -v ./...
.PHONY: test-windows
test: ${BINDATA_TARGETS} # Run tests locally
go test -v $(go list ./... | grep -v /nodeup/)
.PHONY: ${DIST}/linux/amd64/nodeup
${DIST}/linux/amd64/nodeup: ${BINDATA_TARGETS}
mkdir -p ${DIST}