Skip to content

Commit

Permalink
feat: lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolnasc committed Dec 31, 2021
1 parent 5607c97 commit 2800c56
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push, pull_request]
name: linter

jobs:
lint:
strategy:
matrix:
go-version: [1.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 #v2.5.2
with:
version: v1.41
args: --verbose
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package main

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package config

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/github/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Use of this source code is governed by a Apache license.
// license that can be found in the LICENSE file.

package github

import (
Expand Down

0 comments on commit 2800c56

Please sign in to comment.