From f9b8f539efd6a0a963a1d3a2e96bcdd1aa541bd7 Mon Sep 17 00:00:00 2001 From: Inhere Date: Wed, 10 Jan 2024 10:28:23 +0800 Subject: [PATCH] Update go.yml --- workflow-templates/go.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/workflow-templates/go.yml b/workflow-templates/go.yml index 6582d04..1ea7320 100644 --- a/workflow-templates/go.yml +++ b/workflow-templates/go.yml @@ -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 @@ -32,25 +32,6 @@ jobs: with: go-version: ${{ matrix.go_version }} - - name: Revive check - uses: morphy2k/revive-action@v2.3.1 - 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