From f1e50acbb7a63ff53ed3cd7c514c22b005ce5dd4 Mon Sep 17 00:00:00 2001 From: chengxiangdong Date: Tue, 20 Aug 2024 12:52:10 +0800 Subject: [PATCH] upgrade go version --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/swr-latest-image.yaml | 2 +- .github/workflows/swr-released-image.yaml | 2 +- .golangci.yml | 3 +++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 409e526dd..11dacc63e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: Checkout code uses: actions/checkout@v3 - name: Check vendors @@ -34,7 +34,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: compile run: make all test: @@ -47,7 +47,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: make test run: make test e2e: @@ -66,7 +66,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: run e2e run: | export ARTIFACTS_PATH=${{ github.workspace }}/e2e-logs diff --git a/.github/workflows/swr-latest-image.yaml b/.github/workflows/swr-latest-image.yaml index ef1a67c8a..3efd45e6d 100644 --- a/.github/workflows/swr-latest-image.yaml +++ b/.github/workflows/swr-latest-image.yaml @@ -22,7 +22,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: build images env: REGISTRY: ${{secrets.SWR_REGISTRY}} diff --git a/.github/workflows/swr-released-image.yaml b/.github/workflows/swr-released-image.yaml index 809cd701d..be5bf3faa 100644 --- a/.github/workflows/swr-released-image.yaml +++ b/.github/workflows/swr-released-image.yaml @@ -19,7 +19,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version: 1.20.x - name: build images env: REGISTRY: ${{secrets.SWR_REGISTRY}} diff --git a/.golangci.yml b/.golangci.yml index bc7843a11..5cca37335 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,7 @@ run: # on Windows. skip-dirs: - pkg/apigw + - vendor # default is true. Enables skipping of directories: # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ @@ -47,3 +48,5 @@ issues: include: # There are too many issues about comments from golint, fix them in future. #- EXC0002 # disable excluding of issues about comments from golint + exclude-dirs: + - vendor