Skip to content

Commit e85ca1a

Browse files
committed
chore: run golangci-lint via hermit
1 parent 8810161 commit e85ca1a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ jobs:
2222

2323
- uses: actions/checkout@v5
2424

25-
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@v8
27-
with:
28-
version: v2.1.0
25+
- name: Run golangci-lint
26+
run: ./bin/golangci-lint run ./...
2927

3028
lint-jsonschema:
3129
runs-on: ubuntu-latest

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tasks:
9393
- .golangci.yml
9494
- go.mod
9595
cmds:
96-
- golangci-lint run
96+
- "{{.BIN}}/golangci-lint run"
9797

9898
lint:fix:
9999
desc: Runs golangci-lint and fixes any issues
@@ -102,7 +102,7 @@ tasks:
102102
- .golangci.yml
103103
- go.mod
104104
cmds:
105-
- golangci-lint run --fix
105+
- "{{.BIN}}/golangci-lint run --fix"
106106

107107
format:
108108
desc: Runs golangci-lint and formats any Go files
@@ -111,7 +111,7 @@ tasks:
111111
- './**/*.go'
112112
- .golangci.yml
113113
cmds:
114-
- golangci-lint fmt
114+
- "{{.BIN}}/golangci-lint fmt"
115115

116116
sleepit:build:
117117
desc: Builds the sleepit test helper

bin/.golangci-lint-2.1.1.pkg

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

bin/golangci-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.golangci-lint-2.1.1.pkg

0 commit comments

Comments
 (0)