Skip to content

Commit 2800c56

Browse files
committed
feat: lint workflow
1 parent 5607c97 commit 2800c56

File tree

10 files changed

+28
-0
lines changed

10 files changed

+28
-0
lines changed

.github/workflows/lint.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: [push, pull_request]
2+
name: linter
3+
4+
jobs:
5+
lint:
6+
strategy:
7+
matrix:
8+
go-version: [1.x]
9+
platform: [ubuntu-latest]
10+
runs-on: ${{ matrix.platform }}
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: golangci-lint
16+
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 #v2.5.2
17+
with:
18+
version: v1.41
19+
args: --verbose

cmd/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package main
67

78
import (

pkg/config/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package config
67

78
import (

pkg/github/check.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/github.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/handler.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/issue.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/pull_request.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

pkg/github/worker.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Use of this source code is governed by a Apache license.
44
// license that can be found in the LICENSE file.
5+
56
package github
67

78
import (

0 commit comments

Comments
 (0)