2021-03-01 14:45:06 -03:00
|
|
|
name: golangci-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
2022-03-16 20:29:18 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-03-01 14:45:06 -03:00
|
|
|
jobs:
|
|
|
|
golangci:
|
2022-03-16 20:29:18 -05:00
|
|
|
permissions:
|
|
|
|
contents: read # for actions/checkout to fetch code
|
|
|
|
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
2021-03-01 14:45:06 -03:00
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-12 09:56:52 -03:00
|
|
|
- uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3
|
2021-03-01 14:45:06 -03:00
|
|
|
with:
|
2022-03-16 23:28:13 -03:00
|
|
|
go-version: ~1.18
|
2022-03-16 20:29:18 -05:00
|
|
|
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
|
2021-03-01 14:45:06 -03:00
|
|
|
- name: golangci-lint
|
2022-05-11 09:50:07 -03:00
|
|
|
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3
|
2021-03-01 14:45:06 -03:00
|
|
|
with:
|
|
|
|
skip-go-installation: true
|
2021-08-24 20:49:11 -03:00
|
|
|
args: --timeout=5m
|