cli/.github/workflows/golangci-lint.yml

23 lines
388 B
YAML

name: golangci-lint
on:
push:
branches:
- master
pull_request:
env:
GOLANG_LINT_VERSION: "v1.31"
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: ${{ env.GOLANG_LINT_VERSION }}
args: -D errcheck