-
Notifications
You must be signed in to change notification settings - Fork 66
39 lines (39 loc) · 1010 Bytes
/
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
33
34
35
36
37
38
39
name: Linters
on:
push:
tags:
- v*
branches:
- main
# paths:
# - '**/*.go'
# - go.mod
# - go.sum
pull_request:
# paths:
# - '**/*.go'
# - go.mod
# - go.sum
jobs:
golangci-lint:
name: lint
runs-on: ["self-hosted"]
env:
GOPRIVATE: "github.com/dymensionxyz/*"
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}"
steps:
- run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.61.0
only-new-issues: true
skip-cache: true
args: --allow-parallel-runners --timeout=5m