mirror of https://github.com/kubernetes/kops.git
Add Windows job to GH workflows
This commit is contained in:
parent
ea2d0da1cc
commit
9995940677
|
|
@ -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:
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue