Skip to content

Bump k8s.io/cli-runtime from 0.26.0 to 0.28.3 #473

Bump k8s.io/cli-runtime from 0.26.0 to 0.28.3

Bump k8s.io/cli-runtime from 0.26.0 to 0.28.3 #473

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
GO_VERSION: '1.19.4'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Linter
uses: golangci/golangci-lint-action@v3
with:
version: latest
# the default timeout is 1 minute - this is too short and results in frequent timeout errors so we increase it here
args: --timeout 3m0s
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Download modules
run: go mod download
- name: Build project
run: go build ./cmd/aks-periscope
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Go tests
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -C $(Build.SourceVersion)