Skip to content

build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 #402

build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0

build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 #402

Workflow file for this run

name: Go build
on:
pull_request: {}
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: 'go.mod'
- 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@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
version: v1.55.2
# 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@7da72f730e37eeaad891fcff0a532d27ed737cd4
with:
go-version-file: 'go.mod'
go-package: './...'
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...