forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ci task for error check linters (aws#1327)
Adds a CI task to ensure SDK implementation checks for errors
- Loading branch information
1 parent
d6a5651
commit f55ace7
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: golangci-lint | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x] | ||
os: [ubuntu-latest] # other options: macos-latest, windows-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 | ||
version: latest | ||
# the following causes golangci-init to do nothing, so all it does is install golang and golangci | ||
args: --version | ||
# Show only new issues if it's a pull request. The default value is `false`. | ||
# only-new-issues: true | ||
- name: run ci linter | ||
run: make ci-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[run] | ||
concurrency = 4 | ||
timeout = "1m" | ||
issues-exit-code = 0 | ||
modules-download-mode = "readonly" | ||
allow-parallel-runners = true | ||
skip-dirs = ["internal/repotools"] | ||
skip-dirs-use-default = true | ||
|
||
[output] | ||
format = "github-actions" | ||
|
||
[linters-settings.cyclop] | ||
skip-tests = false | ||
|
||
[linters-settings.errcheck] | ||
check-blank = true | ||
|
||
[linters] | ||
disable-all = true | ||
enable = ["errcheck"] | ||
fast = false | ||
|
||
[issues] | ||
exclude-use-default = false | ||
|
||
# Refer config definitions at https://golangci-lint.run/usage/configuration/#config-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters