Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere authored Jan 10, 2024
1 parent 3559c89 commit f9b8f53
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions workflow-templates/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix:
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
go_version: [1.15, 1.16, 1.17, 1.18]
go_version: [1.19, 1.21]

steps:
- name: Check out code
Expand All @@ -32,25 +32,6 @@ jobs:
with:
go-version: ${{ matrix.go_version }}

- name: Revive check
uses: morphy2k/[email protected]
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
# Exclude patterns, separated by semicolons (optional)
exclude: "./internal/..."

- name: Run staticcheck
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
Expand Down

0 comments on commit f9b8f53

Please sign in to comment.