Skip to content

update go version to 1.21 in CI #67

update go version to 1.21 in CI

update go version to 1.21 in CI #67

Workflow file for this run

name: Go build and test
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
K8S_VERSION: 1.23.3
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Build
run: go build -v ./...
- name: Download envtest binaries
run: |
curl -sSLo envtest-bins.tar.gz "https://go.kubebuilder.io/test-tools/${K8S_VERSION}/$(go env GOOS)/$(go env GOARCH)"
sudo tar -vxzf envtest-bins.tar.gz -C /usr/local/
- name: Test
run: go test -v ./...