Skip to content

Commit

Permalink
enable golangci-lint for code check
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Jun 10, 2020
1 parent e16d665 commit d1774ae
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: golangci-lint
on:
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up libgit2
run: make libgit2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.27
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

0 comments on commit d1774ae

Please sign in to comment.