Skip to content

chore(deps): update golangci/golangci-lint-action action to v5.3.0 (v0.13) #2214

chore(deps): update golangci/golangci-lint-action action to v5.3.0 (v0.13)

chore(deps): update golangci/golangci-lint-action action to v5.3.0 (v0.13) #2214

Workflow file for this run

name: Run static checks and unit tests
# Any change in triggers needs to be reflected in the concurrency group.
on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
unit-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
- name: Run static checks
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0
with:
# renovate: datasource=docker depName=golangci/golangci-lint
version: v1.55.2
args: --config=.golangci.yml --verbose
skip-cache: true
- name: Run slowg analyzer
run: | # TODO: remove once slowg is integrated in golangci-lint
go install github.com/cilium/linters@latest
linters -slowg ./...
- name: Check module vendoring
run: |
go mod tidy
go mod vendor
go mod verify
git status
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
- name: Run unit tests
run: make test
- name: Build
run: make
- name: Build release binaries
run: make release