Skip to content

Commit 3d8b414

Browse files
committed
chore: increase timeout for golangci-lint
1 parent 3c5c420 commit 3d8b414

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
pull_request:
88

9-
env:
10-
GOLANGCI_LINT_VERSION: v1.61.0
11-
129
jobs:
1310
build-lint-test:
1411
name: CI
@@ -32,17 +29,10 @@ jobs:
3229
sudo apt update
3330
sudo apt install -y gcc
3431
35-
- name: Setup CI Linter
36-
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{env.GOLANGCI_LINT_VERSION}}
37-
3832
- name: Build
3933
run: |
4034
mage -v build
4135
42-
- name: Lint
43-
run: |
44-
mage -v lint
45-
4636
- name: Test
4737
run: |
4838
CGO_ENABLED=1 mage -v testRace

.github/workflows/go-lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
GOLANGCI_LINT_VERSION: v1.61.0
13+
jobs:
14+
lint-go:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: ./go.mod
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v6
23+
with:
24+
version: ${{env.GOLANGCI_LINT_VERSION}}
25+
args: |
26+
"./..." --timeout=7m
27+
skip-cache: true
28+
install-mode: binary

0 commit comments

Comments
 (0)