Skip to content

Commit f08413c

Browse files
authored
Merge pull request #12 from flashadmin/flashadmin-patch-1
Update lint.yml
2 parents 22e5f9a + 8f8e51c commit f08413c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: Lint
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
- master
48
pull_request:
59

610
jobs:
711
golangci:
812
name: golangci‑lint
913
runs-on: ubuntu-latest
1014
steps:
15+
- uses: actions/checkout@v4
1116
- uses: actions/setup-go@v5
1217
with:
13-
go-version: '1.24'
14-
- uses: actions/checkout@v4
18+
go-version: stable
1519
- name: golangci-lint
1620
uses: golangci/golangci-lint-action@v8
1721
with:
@@ -24,10 +28,4 @@ jobs:
2428
args: --enable bodyclose --timeout 10m
2529

2630
# Optional: show only new issues if it's a pull request. The default value is `false`.
27-
only-new-issues: true
28-
29-
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
30-
# skip-pkg-cache: true
31-
32-
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
33-
# skip-build-cache: true
31+
# only-new-issues: true

0 commit comments

Comments
 (0)