Skip to content

Commit

Permalink
Add linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
optix2000 committed Aug 8, 2021
1 parent bdd863a commit c001f7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ defaults:
shell: bash

jobs:
lint:
if: ${{ github.event_name != 'release'}}
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
build:
runs-on: windows-latest
steps:
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
linters:
disable-all: true
enable:
- staticcheck

0 comments on commit c001f7e

Please sign in to comment.