Skip to content

Commit 4c3f7a1

Browse files
authored
Merge pull request #377 from ruby-go-gem/golangci-lint-version
ci: Introduce `.golangci-lint-version`
2 parents 9a92e9f + a433a53 commit 4c3f7a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ env:
2121
GO_TEST_ARGS: -coverprofile coverage.out -covermode atomic
2222
TEST_GEM_DIR: ruby/testdata/example/
2323

24-
# c.f. https://github.com/golangci/golangci-lint/blob/main/CHANGELOG.md
25-
GOLANGCI_LINT_VERSION: v2.4
26-
2724
jobs:
2825
generate-matrix:
2926
runs-on: ubuntu-latest
@@ -137,7 +134,7 @@ jobs:
137134
- name: golangci-lint
138135
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
139136
with:
140-
version: ${{ env.GOLANGCI_LINT_VERSION }}
137+
version-file: .golangci-lint-version
141138
args: --build-tags ${{ env.BUILD_TAG }} --modules-download-mode=readonly
142139

143140
- name: Slack Notification (not success)

.golangci-lint-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4

0 commit comments

Comments
 (0)