Skip to content

Commit

Permalink
Update Go version to 1.21.0 and upgrade github actions (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone authored Feb 20, 2024
1 parent 938e9aa commit 994f677
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_helm_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module antrea.io/website/scripts

go 1.19
go 1.21.0

require (
github.com/stretchr/testify v1.8.2
Expand Down

0 comments on commit 994f677

Please sign in to comment.