diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index af7a50e7..c45ff983 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,8 +13,8 @@ jobs: name: Build Go scripts runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: 'scripts/go.mod' cache-dependency-path: 'scripts/go.sum' @@ -26,8 +26,8 @@ jobs: name: Tidiness runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: 'scripts/go.mod' cache-dependency-path: 'scripts/go.sum' @@ -39,8 +39,8 @@ jobs: name: Run code linters for Go scripts runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: 'scripts/go.mod' cache-dependency-path: 'scripts/go.sum' @@ -53,9 +53,9 @@ jobs: runs-on: [ubuntu-latest] steps: - name: Check-out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go using version from go.mod - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: 'scripts/go.mod' cache-dependency-path: 'scripts/go.sum' diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 60eb0509..916a9725 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,19 +23,19 @@ jobs: repository: antrea-io/website branch: needs_to_commit-mutex - name: Checkout Antrea - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.event.inputs.antrea-repository }} ref: ${{ github.event.inputs.antrea-ref }} path: antrea - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main path: website token: ${{ secrets.ANTREA_BOT_PAT }} - name: Install golang - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: './website/scripts/go.mod' cache-dependency-path: './website/scripts/go.sum' diff --git a/.github/workflows/update_helm_index.yml b/.github/workflows/update_helm_index.yml index d06bd1e9..1ae375b1 100644 --- a/.github/workflows/update_helm_index.yml +++ b/.github/workflows/update_helm_index.yml @@ -18,7 +18,7 @@ jobs: repository: antrea-io/website branch: needs_to_commit-mutex - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main path: website diff --git a/scripts/Makefile b/scripts/Makefile index 700f1b58..7255fd8e 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,6 +1,6 @@ GO ?= go BINDIR ?= $(CURDIR)/bin -GOLANGCI_LINT_VERSION := v1.50.1 +GOLANGCI_LINT_VERSION := v1.54.0 GOLANGCI_LINT_BINDIR := .golangci-bin GOLANGCI_LINT_BIN := $(GOLANGCI_LINT_BINDIR)/$(GOLANGCI_LINT_VERSION)/golangci-lint diff --git a/scripts/go.mod b/scripts/go.mod index c0e8d96c..770c1536 100644 --- a/scripts/go.mod +++ b/scripts/go.mod @@ -1,6 +1,6 @@ module antrea.io/website/scripts -go 1.19 +go 1.21.0 require ( github.com/stretchr/testify v1.8.2