-
-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (32 loc) · 995 Bytes
/
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
33
34
35
36
name: Golangci-lint
# golangci-lint is a fast Go linters runner. It runs linters in parallel,
# uses caching, supports yaml config, has integrations with all major IDE and
# has dozens of linters included.
# see: https://github.com/golangci/golangci-lint-action
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
golangci:
name: lint
runs-on: ubuntu-24.04
steps:
- name: CPU Info
run: |
cat /proc/cpuinfo
echo "Number of cores: $(nproc)"
echo "Number of threads: $(nproc --all)"
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "^1.22" # The Go version to download (if necessary) and use.
check-latest: true
cache: false
- run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61 # switch to latest if development is unfreezed
args: --timeout=5m