generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from bitcoin-sv/BUX-246/Linters
feat(bux-246): Added linters
- Loading branch information
Showing
20 changed files
with
486 additions
and
595 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
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 |
---|---|---|
@@ -1,57 +1,57 @@ | ||
- color: 0075ca | ||
- color: "0075ca" | ||
description: "Improvements or additions to documentation" | ||
name: "documentation" | ||
- color: b23128 | ||
- color: "b23128" | ||
description: "Highest rated bug or issue, affects all" | ||
name: "bug-P1" | ||
- color: de3d32 | ||
- color: "de3d32" | ||
description: "Medium rated bug, affects a few" | ||
name: "bug-P2" | ||
- color: f44336 | ||
- color: "f44336" | ||
description: "Lowest rated bug, affects nearly none or low-impact" | ||
name: "bug-P3" | ||
- color: 0e8a16 | ||
- color: "0e8a16" | ||
description: "Any new significant addition" | ||
name: "feature" | ||
- color: b60205 | ||
- color: "b60205" | ||
description: "Urgent or important fix/patch" | ||
name: "hot-fix" | ||
- color: cccccc | ||
- color: "cccccc" | ||
description: "Any idea, suggestion or opinion" | ||
name: "idea" | ||
- color: d4c5f9 | ||
- color: "d4c5f9" | ||
description: "Experimental - can break!" | ||
name: "prototype" | ||
- color: cc317c | ||
- color: "cc317c" | ||
description: "Any question or concern" | ||
name: "question" | ||
- color: c2e0c6 | ||
- color: "c2e0c6" | ||
description: "Unit tests, mocking, integration testing" | ||
name: "test" | ||
- color: fbca04 | ||
- color: "fbca04" | ||
description: "Anything GUI related" | ||
name: "ui-ux" | ||
- color: 006b75 | ||
- color: "006b75" | ||
description: "Simple updates or version bumps" | ||
name: "chore" | ||
- color: 006b75 | ||
- color: "006b75" | ||
description: "Dependency updates" | ||
name: "dependencies" | ||
- color: 006b75 | ||
- color: "006b75" | ||
description: "General updates" | ||
name: "update" | ||
- color: FFA500 | ||
- color: "FFA500" | ||
description: "Any significant refactoring" | ||
name: "refactor" | ||
- color: FEF2C0 | ||
- color: "FEF2C0" | ||
description: "Used for automatic merging" | ||
name: "automerge" | ||
- color: FBCA04 | ||
- color: "FBCA04" | ||
description: "Used for denoting a WIP, stops auto-merge" | ||
name: "work-in-progress" | ||
- color: c2e0c6 | ||
- color: "c2e0c6" | ||
description: "Old, unused, stale" | ||
name: "stale" | ||
- color: 50e061 | ||
- color: "50e061" | ||
description: "PR was tested by a team member" | ||
name: "tested" |
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
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 |
---|---|---|
|
@@ -15,8 +15,6 @@ on: | |
branches: | ||
- master | ||
- main | ||
# schedule: | ||
# - cron: '0 23 * * 0' | ||
|
||
jobs: | ||
analyze: | ||
|
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 |
---|---|---|
|
@@ -11,8 +11,6 @@ on: | |
push: | ||
branches: | ||
- "*" | ||
# schedule: | ||
# - cron: '1 4 * * *' | ||
|
||
jobs: | ||
yamllint: | ||
|
@@ -40,6 +38,34 @@ jobs: | |
- name: Ask Nancy | ||
uses: sonatype-nexus-community/[email protected] | ||
continue-on-error: true | ||
error-lint: | ||
name: error-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: latest | ||
args: --config=./.golangci-lint.yml | ||
style-lint: | ||
name: style-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
- name: golangci-style-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: latest | ||
args: --config=./.golangci-style.yml | ||
test: | ||
needs: [yamllint, asknancy] | ||
strategy: | ||
|
@@ -68,9 +94,6 @@ jobs: | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run linter | ||
run: make lint | ||
# Install gotestfmt on the VM running the action. | ||
- name: Set up gotestfmt | ||
uses: GoTestTools/gotestfmt-action@v2 | ||
- name: Run tests | ||
|
@@ -80,5 +103,5 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: unittests | ||
fail_ci_if_error: false # optional (default = false) | ||
verbose: true # optional (default = false) | ||
fail_ci_if_error: false # optional (default = false) | ||
verbose: true # optional (default = false) |
Oops, something went wrong.