-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (30 loc) · 1.13 KB
/
golangci-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: golangci-lint
on:
push:
jobs:
golangci:
name: Golang Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: smartcontractkit/[email protected]
id: tool-versions
- name: Setup go ${{ steps.tool-versions.outputs.golang_version }}
uses: actions/setup-go@v2
with:
go-version: ${{ steps.tool-versions.outputs.golang_version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v${{ steps.tool-versions.outputs.golangci-lint_version }}
args: --timeout=5m0s --tests=false --out-format checkstyle:golangci-lint-report.xml
only-new-issues: true
- name: Print lint report artifact
if: always()
run: test -f golangci-lint-report.xml && cat golangci-lint-report.xml || true
- name: Store lint report artifact
if: always()
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: golangci-lint-report
path: golangci-lint-report.xml