-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👔 up: update the dep imdario/mergo to dario.cat/mergo v1.0.0
- close #179 - move code lint to new action flow lint.yml
- Loading branch information
Showing
5 changed files
with
53 additions
and
25 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 |
---|---|---|
|
@@ -30,24 +30,6 @@ jobs: | |
with: | ||
go-version: ${{ matrix.go_version }} | ||
|
||
- name: Revive check | ||
uses: morphy2k/[email protected] | ||
with: | ||
# Exclude patterns, separated by semicolons (optional) | ||
exclude: "./_examples/..." | ||
|
||
- name: Run static check | ||
uses: reviewdog/action-staticcheck@v1 | ||
if: ${{ github.event_name == 'pull_request'}} | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. | ||
reporter: github-pr-check | ||
# Report all results. [added,diff_context,file,nofilter]. | ||
filter_mode: added | ||
# Exit with 1 when it find at least one finding. | ||
fail_on_error: true | ||
|
||
- name: Run unit tests | ||
# run: go test -v -cover ./... | ||
# must add " for profile.cov on windows OS | ||
|
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,46 @@ | ||
name: CodeCheck | ||
on: | ||
pull_request: | ||
paths: | ||
- 'go.mod' | ||
- '**.go' | ||
- '**.yml' | ||
push: | ||
paths: | ||
- '**.go' | ||
- 'go.mod' | ||
- '**.yml' | ||
|
||
jobs: | ||
|
||
test: | ||
name: Code linter | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go Faster | ||
uses: WillAbides/[email protected] | ||
timeout-minutes: 3 | ||
with: | ||
go-version: * | ||
|
||
- name: Revive lint check | ||
uses: docker://morphy/revive-action:v2.5.5 | ||
with: | ||
# Exclude patterns, separated by semicolons (optional) | ||
exclude: "./_examples/...;./testdata/..." | ||
|
||
- name: Run static check | ||
uses: reviewdog/action-staticcheck@v1 | ||
if: ${{ github.event_name == 'pull_request'}} | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. | ||
reporter: github-pr-check | ||
# Report all results. [added,diff_context,file,nofilter]. | ||
filter_mode: added | ||
# Exit with 1 when it find at least one finding. | ||
fail_on_error: true |
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
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