Skip to content

Commit

Permalink
Add golangci-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyr committed Aug 31, 2022
1 parent bbd98dc commit bee4b36
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: golangci-lint

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.48.0

# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

0 comments on commit bee4b36

Please sign in to comment.