Skip to content

Commit 448ec0b

Browse files
committed
update golangci workflow
1 parent e887a20 commit 448ec0b

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/golangci.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,27 @@ on:
77
- reopened
88
- synchronize
99
- ready_for_review
10+
merge_group:
11+
types:
12+
- checks_requested
1013
jobs:
11-
golangci119:
14+
golangci:
1215
strategy:
1316
fail-fast: false
1417
matrix:
15-
go-version: ["1.22.x", "1.23.x"]
18+
go-version: ['1.22.x', '1.23.x']
1619
os: [ubuntu-latest, windows-latest]
1720
name: Lint
1821
runs-on: ${{ matrix.os }}
1922
steps:
20-
- uses: actions/setup-go@v5
21-
with:
22-
go-version: ${{ matrix.go-version }}
23-
- uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v3
28-
with:
29-
version: v1.55.2
30-
args: --timeout=25m
31-
only-new-issues: true
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ matrix.go-version }}
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v6
31+
with:
32+
version: v1.61
33+
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m

0 commit comments

Comments
 (0)