Skip to content

Commit 5f4657d

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

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint Go
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+
name: Lint go
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version-file: ./go.mod
22+
- name: Run golangci-lint
23+
uses: golangci/golangci-lint-action@v6
24+
with:
25+
version: ${{env.GOLANGCI_LINT_VERSION}}
26+
args: |
27+
"./..." --timeout=7m
28+
skip-cache: true
29+
install-mode: binary

0 commit comments

Comments
 (0)