diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 477a2639cc1..163b2cde383 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -23,18 +23,13 @@ concurrency: jobs: gno2go: - strategy: - fail-fast: false - matrix: - goversion: - - "1.23.x" runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v5 - uses: actions/setup-go@v5 with: - go-version: ${{ matrix.goversion }} + go-version-file: go.mod - run: go install -v ./gnovm/cmd/gno - run: go run ./gnovm/cmd/gno tool transpile -v --gobuild ./examples test: @@ -43,14 +38,12 @@ jobs: with: debug: ${{ inputs.debug || false }} path: "examples" - go-version: "1.23.x" lint: name: Run gno lint uses: ./.github/workflows/template_gnolint.yml with: path: "examples" - go-version: "1.23.x" # TODO: consider running lint on every other directories, maybe in "warning" mode? # TODO: track coverage @@ -65,21 +58,15 @@ jobs: uses: ./.github/workflows/template_build.yml with: modulepath: "examples" - go-version: "1.23.x" mod-tidy: - strategy: - fail-fast: false - matrix: - go-version: ["1.23.x"] - # unittests: TODO: matrix with contracts runs-on: ubuntu-latest timeout-minutes: 10 steps: + - uses: actions/checkout@v5 - uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v5 + go-version-file: go.mod - working-directory: ./examples run: | make tidy diff --git a/.github/workflows/genproto.yml b/.github/workflows/genproto.yml index 8af09d9b607..f6ac5bb092c 100644 --- a/.github/workflows/genproto.yml +++ b/.github/workflows/genproto.yml @@ -17,24 +17,25 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" jobs: main: name: Ensure .proto files are updated runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v5 + - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ inputs.go-version || '1.23.x' }} + go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Install protoc run: sudo apt install -y libprotobuf-dev protobuf-compiler - - name: Checkout code - uses: actions/checkout@v5 - - name: Install devdeps run: | make -C misc/devdeps install diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 456e38edc0d..dce78c59c45 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -33,21 +33,16 @@ jobs: codecov-token: ${{ secrets.CODECOV_TOKEN }} gnoweb_generate: - strategy: - fail-fast: false - matrix: - go-version: ["1.23.x"] - # unittests: TODO: matrix with contracts runs-on: ubuntu-latest timeout-minutes: 10 steps: + - uses: actions/checkout@v5 - uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version-file: go.mod - uses: actions/setup-node@v4 with: node-version: lts/Jod # (22.x) https://github.com/nodejs/Release - - uses: actions/checkout@v5 - run: | make -C gno.land/pkg/gnoweb fclean generate # Check if there are changes after running generate.gnoweb diff --git a/.github/workflows/mod-tidy.yml b/.github/workflows/mod-tidy.yml index cd124b155cf..0f27b5a2b31 100644 --- a/.github/workflows/mod-tidy.yml +++ b/.github/workflows/mod-tidy.yml @@ -19,20 +19,21 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" jobs: main: name: Ensure go.mods are tidied runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v5 + - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ inputs.go-version || '1.23.x' }} - - - name: Checkout code - uses: actions/checkout@v5 + go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Check go.mod files are up to date run: | diff --git a/.github/workflows/template_build.yml b/.github/workflows/template_build.yml index 4066294d682..6e8f5c09ce6 100644 --- a/.github/workflows/template_build.yml +++ b/.github/workflows/template_build.yml @@ -5,8 +5,9 @@ on: required: true type: string go-version: - required: true + required: false type: string + default: "" jobs: generated: @@ -19,6 +20,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Check generated files are up to date working-directory: ${{ inputs.modulepath }} diff --git a/.github/workflows/template_gnofmt.yml b/.github/workflows/template_gnofmt.yml index b4d2f70909f..e3ca4f8ff7d 100644 --- a/.github/workflows/template_gnofmt.yml +++ b/.github/workflows/template_gnofmt.yml @@ -9,7 +9,7 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" jobs: fmt: @@ -22,6 +22,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Format code with gno fmt run: go run ./gnovm/cmd/gno -C ${{ inputs.path }} fmt -diff ./... diff --git a/.github/workflows/template_gnolint.yml b/.github/workflows/template_gnolint.yml index 6ba92e04bfc..58943207cc6 100644 --- a/.github/workflows/template_gnolint.yml +++ b/.github/workflows/template_gnolint.yml @@ -9,7 +9,7 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" debug: description: "Enable debug logs" required: false @@ -29,6 +29,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Run gno lint run: go run ./gnovm/cmd/gno lint -C ${{ inputs.path }} -v ./... diff --git a/.github/workflows/template_gnotest.yml b/.github/workflows/template_gnotest.yml index 5e975f7d61a..6374811fd30 100644 --- a/.github/workflows/template_gnotest.yml +++ b/.github/workflows/template_gnotest.yml @@ -9,7 +9,7 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" debug: description: "Enable debug logs" required: false @@ -29,6 +29,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Setup debug env if: inputs.debug diff --git a/.github/workflows/template_lint.yml b/.github/workflows/template_lint.yml index e703cbab96c..8521d8bc363 100644 --- a/.github/workflows/template_lint.yml +++ b/.github/workflows/template_lint.yml @@ -5,8 +5,9 @@ on: required: true type: string go-version: - required: true + required: false type: string + default: "" jobs: lint: @@ -18,6 +19,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Lint uses: golangci/golangci-lint-action@v8 with: diff --git a/.github/workflows/template_main.yml b/.github/workflows/template_main.yml index 6dc66de19a3..c4deec70afb 100644 --- a/.github/workflows/template_main.yml +++ b/.github/workflows/template_main.yml @@ -14,7 +14,7 @@ on: description: "Go version to use" required: false type: string - default: "1.23.x" + default: "" secrets: codecov-token: required: true diff --git a/.github/workflows/template_test.yml b/.github/workflows/template_test.yml index 8f0a8a31647..87a4a0498ad 100644 --- a/.github/workflows/template_test.yml +++ b/.github/workflows/template_test.yml @@ -8,8 +8,9 @@ on: required: true type: string go-version: - required: true + required: false type: string + default: "" tests-ts-seq: # execute txtar sequentially required: false type: boolean @@ -30,6 +31,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} + go-version-file: go.mod - name: Go test working-directory: ${{ inputs.modulepath }} env: diff --git a/contribs/github-bot/go.mod b/contribs/github-bot/go.mod index 60a96364db0..74564b7b9d8 100644 --- a/contribs/github-bot/go.mod +++ b/contribs/github-bot/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/github-bot -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 replace github.com/gnolang/gno => ../.. diff --git a/contribs/gnobro/go.mod b/contribs/gnobro/go.mod index 75abe02fb9b..824c499bb7c 100644 --- a/contribs/gnobro/go.mod +++ b/contribs/gnobro/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/gnobro -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( github.com/charmbracelet/bubbles v0.19.0 diff --git a/contribs/gnodev/go.mod b/contribs/gnodev/go.mod index 7b1e3ed826e..26cf453a6d8 100644 --- a/contribs/gnodev/go.mod +++ b/contribs/gnodev/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/gnodev -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 replace github.com/gnolang/gno => ../.. diff --git a/contribs/gnogenesis/go.mod b/contribs/gnogenesis/go.mod index 2e17126b9af..59b6e420af5 100644 --- a/contribs/gnogenesis/go.mod +++ b/contribs/gnogenesis/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/contribs/gnogenesis -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( github.com/gnolang/gno v0.0.0-00010101000000-000000000000 diff --git a/contribs/gnohealth/go.mod b/contribs/gnohealth/go.mod index 0c923202037..2f5a4d5c48f 100644 --- a/contribs/gnohealth/go.mod +++ b/contribs/gnohealth/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/gnohealth -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 replace github.com/gnolang/gno => ../.. diff --git a/contribs/gnokeykc/go.mod b/contribs/gnokeykc/go.mod index 3b78ce4a59a..438acb3e628 100644 --- a/contribs/gnokeykc/go.mod +++ b/contribs/gnokeykc/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/gnokeykc -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 replace github.com/gnolang/gno => ../.. diff --git a/contribs/gnokms/go.mod b/contribs/gnokms/go.mod index 15f1c0d571d..f6c3ed436e6 100644 --- a/contribs/gnokms/go.mod +++ b/contribs/gnokms/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/gnokms -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 replace github.com/gnolang/gno => ../.. diff --git a/contribs/gnomigrate/go.mod b/contribs/gnomigrate/go.mod index 8c0ff563ba8..9e5f96d0d9d 100644 --- a/contribs/gnomigrate/go.mod +++ b/contribs/gnomigrate/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gnomigrate -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( github.com/gnolang/gno v0.0.0-00010101000000-000000000000 diff --git a/contribs/tx-archive/go.mod b/contribs/tx-archive/go.mod index bbc123a348b..9ffb282ca63 100644 --- a/contribs/tx-archive/go.mod +++ b/contribs/tx-archive/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/contribs/tx-archive -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( github.com/gnolang/gno v0.0.0-20250528110257-f6b725541d59 diff --git a/go.mod b/go.mod index 58c19d3ab7e..7868d2206d5 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( dario.cat/mergo v1.0.1 diff --git a/misc/autocounterd/go.mod b/misc/autocounterd/go.mod index 3e923397965..37b6d9d8374 100644 --- a/misc/autocounterd/go.mod +++ b/misc/autocounterd/go.mod @@ -1,8 +1,6 @@ module autocounterd -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require github.com/gnolang/gno v0.0.0-00010101000000-000000000000 diff --git a/misc/loop/go.mod b/misc/loop/go.mod index 3cf968b4e5c..eb246dd12d7 100644 --- a/misc/loop/go.mod +++ b/misc/loop/go.mod @@ -1,8 +1,6 @@ module github.com/gnolang/gno/misc/loop -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( github.com/docker/docker v25.0.6+incompatible diff --git a/misc/stress-test/stress-test-many-posts/go.mod b/misc/stress-test/stress-test-many-posts/go.mod index b1f5cbdfc39..8dbddb0ee84 100644 --- a/misc/stress-test/stress-test-many-posts/go.mod +++ b/misc/stress-test/stress-test-many-posts/go.mod @@ -1,8 +1,6 @@ module stress_test_many_posts -go 1.24.0 - -toolchain go1.24.4 +go 1.24.4 require ( connectrpc.com/connect v1.16.2