Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/genproto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/mod-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/template_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
required: true
type: string
go-version:
required: true
required: false
type: string
default: ""

jobs:
generated:
Expand All @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/template_gnofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
description: "Go version to use"
required: false
type: string
default: "1.23.x"
default: ""

jobs:
fmt:
Expand All @@ -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 ./...
3 changes: 2 additions & 1 deletion .github/workflows/template_gnolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./...
3 changes: 2 additions & 1 deletion .github/workflows/template_gnotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/template_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
required: true
type: string
go-version:
required: true
required: false
type: string
default: ""

jobs:
lint:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
description: "Go version to use"
required: false
type: string
default: "1.23.x"
default: ""
secrets:
codecov-token:
required: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/template_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions contribs/github-bot/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../..

Expand Down
4 changes: 1 addition & 3 deletions contribs/gnobro/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions contribs/gnodev/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../..

Expand Down
4 changes: 1 addition & 3 deletions contribs/gnogenesis/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions contribs/gnohealth/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../..

Expand Down
4 changes: 1 addition & 3 deletions contribs/gnokeykc/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../..

Expand Down
4 changes: 1 addition & 3 deletions contribs/gnokms/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../..

Expand Down
4 changes: 1 addition & 3 deletions contribs/gnomigrate/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions contribs/tx-archive/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions misc/autocounterd/go.mod
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 1 addition & 3 deletions misc/loop/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions misc/stress-test/stress-test-many-posts/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading