Skip to content

Merge pull request #3 from Tech-Preta/dependabot/go_modules/k8s.io/cl… #22

Merge pull request #3 from Tech-Preta/dependabot/go_modules/k8s.io/cl…

Merge pull request #3 from Tech-Preta/dependabot/go_modules/k8s.io/cl… #22

Workflow file for this run

name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Run go mod tidy
run: go mod tidy
- name: Install dependencies
run: go get k8s.io/client-go/kubernetes
- name: Install dependencies
run: go get k8s.io/client-go/rest
- name: Install dependencies
run: go get k8s.io/client-go/tools/clientcmd
- name: Build
run: go build -o kube-carga .