1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
- dev
pull_request:
# This guards against unknown PR until a community member vet it and label it.
types: [ labeled ]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
|