2022-05-31 19:23:39 +00:00
|
|
|
name: golangci-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
|
|
|
# pull-requests: read
|
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
2022-07-06 22:05:23 +00:00
|
|
|
go-version: 1.17
|
2022-05-31 19:23:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: golangci-lint
|
|
|
|
uses: golangci/golangci-lint-action@v3
|
2022-08-10 19:50:59 +00:00
|
|
|
with:
|
|
|
|
version: v1.46.2
|