Kubernetes 1.31 and go1.23 #2111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull_request | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
gen: | |
name: Code Gen | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
id: go | |
- name: Generate Code | |
run: | | |
./ci/check-code-and-docs-gen.sh | |
test: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
# Required for codegen tests | |
- name: Install kind | |
uses: helm/[email protected] | |
with: | |
install_only: true | |
version: v0.17.0 | |
- name: Setup Kind | |
run: | | |
./ci/setup-kind.sh skv2-test-remote | |
- uses: azure/setup-kubectl@v3 | |
with: | |
version: 'v1.24.7' | |
- name: Install deps for codegen | |
run: | | |
make install-tools | |
- name: Run tests | |
run: | | |
REMOTE_CLUSTER_CONTEXT=kind-skv2-test-remote PATH="$(pwd)/_output/.bin:$PATH" go test ./... |