Skip to content

Commit b1c22f4

Browse files
committed
WIP: test golangci-lint v1 github workflow
1 parent 446c087 commit b1c22f4

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

.github/workflows/pr.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ jobs:
3131
# We already run the current golangci-lint in tests, but here we test
3232
# our GitHub action with the latest stable golangci-lint.
3333
# **Important**: The v1 version of the action on GitHub does not support golang 1.25, so it needs to be disabled.
34-
# golangci-lint:
35-
# runs-on: ubuntu-latest
36-
# steps:
37-
# - uses: actions/checkout@v4
38-
# - uses: actions/setup-go@v5
39-
# with:
40-
# # https://github.com/actions/setup-go#supported-version-syntax
41-
# # ex:
42-
# # - 1.18beta1 -> 1.18.0-beta.1
43-
# # - 1.18rc1 -> 1.18.0-rc.1
44-
# go-version: ${{ env.GO_VERSION }}
45-
# - name: lint
46-
# uses: golangci/[email protected]
47-
# with:
48-
# version: latest
34+
golangci-lint:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: actions/setup-go@v5
39+
with:
40+
# https://github.com/actions/setup-go#supported-version-syntax
41+
# ex:
42+
# - 1.18beta1 -> 1.18.0-beta.1
43+
# - 1.18rc1 -> 1.18.0-rc.1
44+
go-version: ${{ env.GO_VERSION }}
45+
# - name: lint
46+
# uses: golangci/[email protected]
47+
# with:
48+
# version: latest
4949

5050
tests-on-windows:
5151
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,4 @@ issues:
196196

197197
run:
198198
timeout: 5m
199+

cmd/golangci-lint/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package: main
12
package main
23

34
import (

0 commit comments

Comments
 (0)