2022-06-17 14:12:49 +00:00
|
|
|
name: golangci-lint (windows)
|
|
|
|
|
2022-05-17 10:14:59 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'mkdocs.yml'
|
|
|
|
- 'README.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'mkdocs.yml'
|
|
|
|
- 'README.md'
|
|
|
|
jobs:
|
|
|
|
golangci:
|
2022-06-17 14:12:49 +00:00
|
|
|
name: lint
|
2022-05-17 10:14:59 +00:00
|
|
|
runs-on: windows-2022
|
|
|
|
steps:
|
2022-06-06 13:24:48 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-17 10:14:59 +00:00
|
|
|
- name: golangci-lint
|
2022-06-06 13:24:48 +00:00
|
|
|
uses: golangci/golangci-lint-action@v3
|
2022-05-17 10:14:59 +00:00
|
|
|
with:
|
|
|
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
2022-06-06 13:24:48 +00:00
|
|
|
version: v1.46
|
2022-05-17 10:14:59 +00:00
|
|
|
# Optional: golangci-lint command line arguments.
|
2022-05-23 07:45:32 +00:00
|
|
|
args: --issues-exit-code=0 --timeout 10m
|
2022-05-17 10:14:59 +00:00
|
|
|
only-new-issues: true
|