From 999594067789f174c5f8342f49932073f84ffd96 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Mon, 10 Aug 2020 18:26:17 +0300 Subject: [PATCH] Add Windows job to GH workflows --- .github/workflows/main.yml | 18 ++++++++++++++++++ Makefile | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6caf1532f2..9e45f24b43 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/Makefile b/Makefile index 7c22e8e056..becd8b714e 100644 --- a/Makefile +++ b/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}