Skip to content

Commit 13fe05f

Browse files
committed
Move linter to separate workflow and bump expected config version
Signed-off-by: Cody Soyland <[email protected]>
1 parent f4ea60a commit 13fe05f

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

.github/workflows/lint.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
12+
jobs:
13+
golangci:
14+
name: lint
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@v7
23+
with:
24+
version: v2.0

.github/workflows/tests.yaml

-15
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,3 @@ jobs:
7979
run: |
8080
set -e
8181
addlicense -check -l apache -c 'The Sigstore Authors' -ignore "third_party/**" -v *
82-
83-
golangci:
84-
name: lint
85-
runs-on: ubuntu-latest
86-
steps:
87-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
88-
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
89-
with:
90-
go-version-file: './go.mod'
91-
check-latest: true
92-
- name: golangci-lint
93-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
94-
with:
95-
version: v1.61
96-
args: --timeout=15m

0 commit comments

Comments
 (0)