diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index d2dc85902..5c88fd99f 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -33,7 +33,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.23.5" + go-version-file: 'server/go.mod' + cache: false - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 # TODO: fix error=archive named dist/reearth_0.0.0-SNAPSHOT-xxxxxxxx.tar.gz already exists. Check your archive name template diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 91ed21151..711f90f82 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -1,8 +1,6 @@ name: ci-server on: workflow_call: -env: - GO_VERSION: "1.23.5" jobs: ci-server-lint: @@ -14,12 +12,12 @@ jobs: - name: set up uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: 'server/go.mod' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.63.4 + version: v1.64.5 args: --timeout=10m working-directory: server - name: Run go generate @@ -50,7 +48,7 @@ jobs: - name: set up uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: 'server/go.mod' cache-dependency-path: server/go.sum - name: test run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m diff --git a/go.work b/go.work index 3cc72ac27..23bce348f 100644 --- a/go.work +++ b/go.work @@ -1,3 +1,3 @@ -go 1.23.5 +go 1.24.0 use ./server diff --git a/server/go.mod b/server/go.mod index 7c62794e2..3066dc455 100644 --- a/server/go.mod +++ b/server/go.mod @@ -189,4 +189,4 @@ require ( moul.io/http2curl/v2 v2.3.0 // indirect ) -go 1.23.5 +go 1.24.0