fleet/.github/workflows/golangci-lint.yml
Michal Nicpon 74555e4bf4
fix lint workflow (#4935)
* use go version 1.17 in golanci-lint workflow
2022-04-04 14:14:05 -06:00

36 lines
910 B
YAML

name: golangci-lint
on:
push:
branches:
- main
- patch-*
paths:
- '**.go'
pull_request:
paths:
- '**.go'
workflow_dispatch: # Manual
permissions:
contents: read
jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- 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.42
args: --timeout 10m