Skip to content

Commit 5fe5d30

Browse files
committed
Lint with custom-gcl
1 parent dc4147f commit 5fe5d30

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

.custom-gcl.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: v1.63.4
2+
plugins:
3+
- module: 'github.com/lukasschwab/nilinterface'
4+
import: 'github.com/lukasschwab/nilinterface/pkg/golangci-linter'
5+
version: v0.0.6
6+

.github/workflows/go.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: golangci-lint
1+
name: Go
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77
workflow_dispatch:
88

@@ -11,10 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Set up go
15-
uses: actions/setup-go@v4
16-
with:
17-
go-version: '1.23'
1814
- name: Build
1915
run: go build -v ./...
2016
- name: Test
@@ -27,10 +23,8 @@ jobs:
2723
steps:
2824
- uses: actions/checkout@v3
2925
- name: Set up go
30-
uses: actions/setup-go@v4
26+
uses: actions/setup-go@v5
3127
with:
32-
go-version: '1.23'
28+
go-version: "1.23"
3329
- name: Lint
34-
uses: golangci/golangci-lint-action@v3
35-
with:
36-
version: latest
30+
uses: lukasschwab/golangci-lint-custom-plugins-action@v0.0.1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
*.html
1+
./*.html
22
*.db
33
.vscode
4+
custom-gcl

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.PHONY: lint
2+
lint: custom-gcl
3+
./custom-gcl run
4+
5+
custom-gcl: .custom-gcl.yml
6+
golangci-lint custom -v

0 commit comments

Comments
 (0)