Skip to content

Commit

Permalink
Add actions for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Sep 16, 2020
1 parent 30e0317 commit 354e8dd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/lint.yml
@@ -0,0 +1,23 @@
name: lint
on:
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
- '.github/'
- 'images/'
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
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.30.0

# Optional: golangci-lint command line arguments.
# args: ./the-only-dir-to-analyze/...

0 comments on commit 354e8dd

Please sign in to comment.