Skip to content

build(deps): bump the k8s-deps group with 2 updates #326

build(deps): bump the k8s-deps group with 2 updates

build(deps): bump the k8s-deps group with 2 updates #326

Workflow file for this run

name: Go build
on:
pull_request: {}
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: '1.20.7'
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Formatting check
run: |
go fmt ./...
git diff --exit-code
- name: Go mod check
run: |
go mod tidy
go mod vendor
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
- name: Run static checks
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.53.3
# use our .golangci.yml and configure output to be logged in the GHA, in addition to annotating the commit.
# see https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648 for output
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true
- name: govulncheck
uses: golang/govulncheck-action@dd3ead030e4f2cf713062f7a3395191802364e13
with:
go-version: '1.20.7'
go-package: './...'
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...