Skip to content

Commit

Permalink
chore: use go stable version (#1863)
Browse files Browse the repository at this point in the history
* chore: use go stable version

Signed-off-by: Keming <kemingyang@tensorchord.ai>

* fix makefile go test file dir error

Signed-off-by: Keming <kemingyang@tensorchord.ai>

---------

Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Mar 12, 2024
1 parent b8dfa15 commit dfa017b
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 30 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- uses: actions/checkout@v4
- name: Cache Go modules
uses: actions/cache@preview
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19.10
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Install bins
run: |
go install github.com/mattn/goveralls@latest
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- uses: actions/checkout@v4
- name: Cache Go modules
uses: actions/cache@preview
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Install bins
run: |
go install github.com/mattn/goveralls@latest
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19.10
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 'stable'
- name: Cache Go modules
uses: actions/cache@preview
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19.10
go-version: 'stable'
- name: Docker Login
uses: docker/login-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ test-local:
@go test -v -race -coverprofile=coverage.out ./...

test: generate ## Run the tests
@go test -race -coverpkg=./pkg/... -coverprofile=coverage.out $(shell go list ./... | grep -v e2e)
@go test -race -coverpkg=./pkg/... -coverprofile=coverage.out ./pkg/...
@go tool cover -func coverage.out | tail -n 1 | awk '{ print "Total coverage: " $$3 }'

e2e-test:
Expand Down
20 changes: 10 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ require (
github.com/moby/term v0.5.0
github.com/morikuni/aec v1.0.0
github.com/olekukonko/tablewriter v0.0.5
github.com/onsi/ginkgo/v2 v2.12.1
github.com/onsi/gomega v1.27.10
github.com/onsi/ginkgo/v2 v2.16.0
github.com/onsi/gomega v1.30.0
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b
github.com/pkg/errors v0.9.1
Expand All @@ -44,9 +44,9 @@ require (
github.com/tonistiigi/vt100 v0.0.0-20210615222946-8066bb97264f
github.com/urfave/cli/v2 v2.25.7
go.starlark.net v0.0.0-20220328144851-d1966c6b9fcd
golang.org/x/crypto v0.17.0
golang.org/x/sync v0.3.0
golang.org/x/term v0.15.0
golang.org/x/crypto v0.18.0
golang.org/x/sync v0.6.0
golang.org/x/term v0.16.0
golang.org/x/time v0.3.0
)

Expand Down Expand Up @@ -87,7 +87,7 @@ require (
github.com/getsentry/sentry-go v0.18.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
Expand Down Expand Up @@ -187,12 +187,12 @@ require (
go.opentelemetry.io/otel/trace v1.14.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/exp v0.0.0-20230711023510-fffb14384f22 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/oauth2 v0.7.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.13.0 // indirect
golang.org/x/tools v0.17.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.122.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand Down
Loading

0 comments on commit dfa017b

Please sign in to comment.