chore(deps): bump k8s.io/client-go from 0.28.4 to 0.29.0 #2348
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: Validate | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
name: validate - ${{ matrix.name }} | |
runs-on: ${{ matrix.runner }} | |
container: ghcr.io/kedacore/keda-tools:1.21.5 | |
strategy: | |
matrix: | |
include: | |
- runner: ARM64 | |
name: arm64 | |
- runner: ubuntu-latest | |
name: amd64 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Register workspace path | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Check go version | |
run: go version | |
- name: Set Go paths | |
id: go-paths | |
run: | | |
echo ::set-output name=mod_cache::$(go env GOMODCACHE) | |
echo ::set-output name=build_cache::$(go env GOCACHE) | |
- name: Go modules cache | |
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3 | |
with: | |
path: ${{ steps.go-paths.outputs.mod_cache }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: Go build cache | |
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3 | |
with: | |
path: ${{ steps.go-paths.outputs.build_cache }} | |
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }} | |
- name: Download Go Modules | |
run: go mod download | |
- name: Codegen | |
run: make verify-codegen | |
- name: Manifests | |
run: make verify-manifests | |
- name: Mockgen | |
run: make verify-mockgen | |
- name: Build | |
run: ARCH=${{ matrix.name }} make build | |
- name: Test | |
run: ARCH=${{ matrix.name }} make test | |
statics: | |
name: Static Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: 3.x | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4.1 | |
with: | |
go-version: "1.21" | |
- name: Get golangci | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2 | |
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0 |