From 1052277abe6fe59686b642742f6ee96f0f82cce9 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 8 Sep 2022 16:47:43 -0600 Subject: [PATCH] Add an action covering build of kubernetes engine. --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2b0fd3c..4e29b06a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,28 @@ jobs: # Run tests - run: go test -v -cover -race ./... + + k8s: + name: "Verify k8s build" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + # use max/min supported Go versions + go-version: ["1.18.x"] + + steps: + - name: Setup Go environment + id: setup-go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + + # Checks-out the repository under $GITHUB_WORKSPACE + - uses: actions/checkout@v2 + + # Run tests + - run: go build -tags k8s build: name: "Build Calculator (${{ matrix.target.os }}, ${{ matrix.go-version }})"