Skip to content

Commit

Permalink
Run golangci-lint on multiple os
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Aug 28, 2022
1 parent f6c67bd commit 25dc873
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Go
*.go text eol=lf
15 changes: 12 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
contents: read

jobs:
lint:
super-linter:
runs-on: ubuntu-latest
steps:
- name: Check out code base
Expand All @@ -43,8 +43,11 @@ jobs:
VALIDATE_BASH_EXEC: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

go:
runs-on: ubuntu-latest
golangci:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code base
if: github.event_name == 'push'
Expand All @@ -66,6 +69,12 @@ jobs:

- name: Golang linter
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3.2.0
with:
version: v1.49
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

shellcheck:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 25dc873

Please sign in to comment.