From 19b93366f2e16902b638e062236d3935fc924d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Mon, 9 Dec 2024 16:02:42 +0100 Subject: [PATCH 01/13] Save progress --- .github/workflows/autocounterd.yml | 6 ------ .github/workflows/dependabot-validate.yml | 1 + .github/workflows/{docs.yml => docs-linter.yml} | 7 +++---- .github/workflows/examples.yml | 11 +++++++---- 4 files changed, 11 insertions(+), 14 deletions(-) rename .github/workflows/{docs.yml => docs-linter.yml} (94%) diff --git a/.github/workflows/autocounterd.yml b/.github/workflows/autocounterd.yml index 9217fe2eef2..f2a9650d672 100644 --- a/.github/workflows/autocounterd.yml +++ b/.github/workflows/autocounterd.yml @@ -1,9 +1,6 @@ name: autocounterd on: - pull_request: - branches: - - master push: paths: - misc/autocounterd @@ -11,9 +8,6 @@ on: - .github/workflows/autocounterd.yml branches: - "master" - - "misc/autocounterd" - tags: - - "v*" permissions: contents: read diff --git a/.github/workflows/dependabot-validate.yml b/.github/workflows/dependabot-validate.yml index b1387dc0bb2..68506515710 100644 --- a/.github/workflows/dependabot-validate.yml +++ b/.github/workflows/dependabot-validate.yml @@ -5,6 +5,7 @@ on: paths: - '.github/dependabot.yml' - '.github/workflows/dependabot-validate.yml' + jobs: validate: runs-on: ubuntu-latest diff --git a/.github/workflows/docs.yml b/.github/workflows/docs-linter.yml similarity index 94% rename from .github/workflows/docs.yml rename to .github/workflows/docs-linter.yml index c9d9af0fb6f..f4e1b198dee 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs-linter.yml @@ -1,10 +1,9 @@ -name: "docs / lint" +name: "docs linter" on: - push: - paths: - - master pull_request: + branches: + - master paths: - "docs/**" diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 41d579c4567..c36dc70b6d1 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -2,9 +2,12 @@ name: examples on: pull_request: + paths: + - '**/*.gno' push: - branches: ["master"] - + branches: [ "master" ] + paths: + - '**/*.gno' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -70,7 +73,7 @@ jobs: strategy: fail-fast: false matrix: - goversion: ["1.22.x"] + goversion: [ "1.22.x" ] runs-on: ubuntu-latest timeout-minutes: 10 steps: @@ -86,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: ["1.22.x"] + go-version: [ "1.22.x" ] # unittests: TODO: matrix with contracts runs-on: ubuntu-latest timeout-minutes: 10 From a48cb2ccd75a5c807d5597e6838631fb9b0e1d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Tue, 10 Dec 2024 13:50:35 +0100 Subject: [PATCH 02/13] Update workflows, standardize gno fmt --- .github/workflows/contribs.yml | 7 +-- .github/workflows/examples.yml | 19 +++---- .github/workflows/gh-pages.yml | 3 +- .github/workflows/gnofmt_template.yml | 18 ++++--- .github/workflows/gnoland.yml | 3 +- .github/workflows/gnovm.yml | 3 +- .github/workflows/main_template.yml | 74 +++++++++++++-------------- .github/workflows/misc.yml | 1 + .github/workflows/tm2.yml | 1 + 9 files changed, 67 insertions(+), 62 deletions(-) diff --git a/.github/workflows/contribs.yml b/.github/workflows/contribs.yml index 3739339f7be..26114f2849f 100644 --- a/.github/workflows/contribs.yml +++ b/.github/workflows/contribs.yml @@ -19,12 +19,13 @@ jobs: main: needs: setup strategy: - fail-fast: false - matrix: - program: ${{ fromJson(needs.setup.outputs.programs) }} + fail-fast: false + matrix: + program: ${{ fromJson(needs.setup.outputs.programs) }} name: Run Main uses: ./.github/workflows/main_template.yml with: modulepath: contribs/${{ matrix.program }} + go-version: "1.22.x" secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index c36dc70b6d1..2ddf08ccf42 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -70,21 +70,18 @@ jobs: # TODO: consider running lint on every other directories, maybe in "warning" mode? # TODO: track coverage fmt: - strategy: - fail-fast: false - matrix: - goversion: [ "1.22.x" ] + name: Run gno fmt runs-on: ubuntu-latest - timeout-minutes: 10 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - name: gno fmt + uses: ./.github/workflows/gnofmt_template.yml with: - go-version: ${{ matrix.goversion }} - - run: | - make fmt -C ./examples - # Check if there are changes after running make fmt + path: "examples/..." + go-version: "1.22.x" + - name: Check for unformatted gno files + run: | git diff --exit-code || (echo "Some gno files are not formatted, please run 'make fmt'." && exit 1) + mod-tidy: strategy: fail-fast: false diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1b955b52cd0..5871ad00189 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,4 +1,5 @@ -# generate docs and publish on gh-pages branch +# generate Go docs and publish on gh-pages branch +# Live at: https://gnolang.github.io/gno name: gh-pages on: diff --git a/.github/workflows/gnofmt_template.yml b/.github/workflows/gnofmt_template.yml index 1ba66d0fbe3..8d4b38f8121 100644 --- a/.github/workflows/gnofmt_template.yml +++ b/.github/workflows/gnofmt_template.yml @@ -1,12 +1,14 @@ on: workflow_call: - inputs: - path: - required: true - type: string - go-version: - required: true - type: string + inputs: + path: + description: "Path to run gno fmt on" + required: true + type: string + go-version: + description: "Go version to use" + required: true + type: string jobs: fmt: @@ -18,7 +20,7 @@ jobs: go-version: ${{ inputs.go-version }} - name: Checkout code uses: actions/checkout@v4 - - name: Fmt + - name: fmt env: GNOFMT_PATH: ${{ inputs.path }} run: go run ./gnovm/cmd/gno fmt -v -diff $GNOFMT_PATH diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 4817e2db0e3..de41e8c2963 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -9,10 +9,11 @@ on: jobs: main: - name: Run Main + name: Run gno.land suite uses: ./.github/workflows/main_template.yml with: modulepath: "gno.land" + go-version: "1.22.x" tests-extra-args: "-coverpkg=github.com/gnolang/gno/gno.land/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index 7e7586b23d9..a0d7756a901 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -13,10 +13,11 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: "gnovm" + go-version: "1.22.x" secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} fmt: - name: Run Gno Fmt + name: Run gno fmt uses: ./.github/workflows/gnofmt_template.yml with: path: "gnovm/stdlibs/..." diff --git a/.github/workflows/main_template.yml b/.github/workflows/main_template.yml index 5b3437b54a1..ca8bc43cfd7 100644 --- a/.github/workflows/main_template.yml +++ b/.github/workflows/main_template.yml @@ -1,41 +1,41 @@ on: - workflow_call: - inputs: - modulepath: - required: true - type: string - tests-extra-args: - required: false - type: string - secrets: - codecov-token: - required: true - -# TODO: environment variables cannot be sent to reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations -# env: -# GO_VERSION: "1.22.x" + workflow_call: + inputs: + modulepath: + required: true + type: string + tests-extra-args: + required: false + type: string + go-version: + description: "Go version to use" + required: true + type: string + secrets: + codecov-token: + required: true jobs: - lint: - name: Go Linter - uses: ./.github/workflows/lint_template.yml - with: - modulepath: ${{ inputs.modulepath }} - go-version: "1.22.x" - build: - name: Go Build - uses: ./.github/workflows/build_template.yml - with: - modulepath: ${{ inputs.modulepath }} - go-version: "1.22.x" - test: - name: Go Test - uses: ./.github/workflows/test_template.yml - with: - modulepath: ${{ inputs.modulepath }} - tests-timeout: "30m" - go-version: "1.22.x" - tests-extra-args: ${{ inputs.tests-extra-args }} - secrets: - codecov-token: ${{ secrets.codecov-token }} + lint: + name: Go Linter + uses: ./.github/workflows/lint_template.yml + with: + modulepath: ${{ inputs.modulepath }} + go-version: ${{ inputs.go-version }} + build: + name: Go Build + uses: ./.github/workflows/build_template.yml + with: + modulepath: ${{ inputs.modulepath }} + go-version: ${{ inputs.go-version }} + test: + name: Go Test + uses: ./.github/workflows/test_template.yml + with: + modulepath: ${{ inputs.modulepath }} + tests-timeout: "30m" + go-version: ${{ inputs.go-version }} + tests-extra-args: ${{ inputs.tests-extra-args }} + secrets: + codecov-token: ${{ secrets.codecov-token }} diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index ad2c886e2ac..24a9ccdb284 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -25,5 +25,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: misc/${{ matrix.program }} + go-version: "1.22.x" secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 57e84793c94..41c60fe5a52 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: "tm2" + go-version: "1.22.x" secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} From 3b70e128848de139199241cb6f7185ec9a778809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Tue, 10 Dec 2024 14:03:24 +0100 Subject: [PATCH 03/13] Move gnoland txtar files --- gno.land/cmd/gnoland/integration_test.go | 11 ----------- .../gnoland => pkg/integration}/testdata/addpkg.txtar | 0 .../integration}/testdata/addpkg_domain.txtar | 0 .../integration}/testdata/addpkg_invalid.txtar | 0 .../integration}/testdata/addpkg_namespace.txtar | 0 .../integration}/testdata/alloc_array.txtar | 0 .../integration}/testdata/alloc_byte_slice.txtar | 0 .../integration}/testdata/alloc_slice.txtar | 0 .../gnoland => pkg/integration}/testdata/append.txtar | 0 .../integration}/testdata/assertorigincall.txtar | 0 .../integration}/testdata/event_callback.txtar | 0 .../testdata/event_defer_callback_loop.txtar | 0 .../integration}/testdata/event_for_statement.txtar | 0 .../integration}/testdata/event_multi_msg.txtar | 0 .../integration}/testdata/event_normal.txtar | 0 .../integration}/testdata/float_arg.txtar | 0 .../integration}/testdata/genesis_params.txtar | 0 .../integration}/testdata/ghverify.txtar | 0 .../integration}/testdata/gnokey_simulate.txtar | 0 .../integration}/testdata/gnoweb_airgapped.txtar | 0 .../integration}/testdata/grc20_invalid_address.txtar | 0 .../integration}/testdata/grc20_registry.txtar | 0 .../integration}/testdata/grc721_emit.txtar | 0 .../integration}/testdata/initctx.txtar | 0 .../integration}/testdata/issue_1167.txtar | 0 .../integration}/testdata/issue_1588.txtar | 0 .../integration}/testdata/issue_1786.txtar | 0 .../integration}/testdata/issue_2283.txtar | 0 .../integration}/testdata/issue_2283_cacheTypes.txtar | 0 .../integration}/testdata/issue_gnochess_97.txtar | 0 .../integration}/testdata/maketx_call_pure.txtar | 0 .../integration}/testdata/map_delete.txtar | 0 .../integration}/testdata/map_storage.txtar | 0 .../gnoland => pkg/integration}/testdata/panic.txtar | 0 .../gnoland => pkg/integration}/testdata/params.txtar | 0 .../integration}/testdata/prevrealm.txtar | 0 .../testdata/realm_banker_issued_coin_denom.txtar | 0 .../integration}/testdata/restart_missing_type.txtar | 0 .../integration}/testdata/restart_nonval.txtar | 0 .../gnoland => pkg/integration}/testdata/run.txtar | 0 .../integration}/testdata/simulate_gas.txtar | 0 .../integration}/testdata/time_simple.txtar | 0 .../gnoland => pkg/integration}/testdata/wugnot.txtar | 0 43 files changed, 11 deletions(-) delete mode 100644 gno.land/cmd/gnoland/integration_test.go rename gno.land/{cmd/gnoland => pkg/integration}/testdata/addpkg.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/addpkg_domain.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/addpkg_invalid.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/addpkg_namespace.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/alloc_array.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/alloc_byte_slice.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/alloc_slice.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/append.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/assertorigincall.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/event_callback.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/event_defer_callback_loop.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/event_for_statement.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/event_multi_msg.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/event_normal.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/float_arg.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/genesis_params.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/ghverify.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/gnokey_simulate.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/gnoweb_airgapped.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/grc20_invalid_address.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/grc20_registry.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/grc721_emit.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/initctx.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_1167.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_1588.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_1786.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_2283.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_2283_cacheTypes.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/issue_gnochess_97.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/maketx_call_pure.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/map_delete.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/map_storage.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/panic.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/params.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/prevrealm.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/realm_banker_issued_coin_denom.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/restart_missing_type.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/restart_nonval.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/run.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/simulate_gas.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/time_simple.txtar (100%) rename gno.land/{cmd/gnoland => pkg/integration}/testdata/wugnot.txtar (100%) diff --git a/gno.land/cmd/gnoland/integration_test.go b/gno.land/cmd/gnoland/integration_test.go deleted file mode 100644 index 37451df9704..00000000000 --- a/gno.land/cmd/gnoland/integration_test.go +++ /dev/null @@ -1,11 +0,0 @@ -package main - -import ( - "testing" - - "github.com/gnolang/gno/gno.land/pkg/integration" -) - -func TestTestdata(t *testing.T) { - integration.RunGnolandTestscripts(t, "testdata") -} diff --git a/gno.land/cmd/gnoland/testdata/addpkg.txtar b/gno.land/pkg/integration/testdata/addpkg.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/addpkg.txtar rename to gno.land/pkg/integration/testdata/addpkg.txtar diff --git a/gno.land/cmd/gnoland/testdata/addpkg_domain.txtar b/gno.land/pkg/integration/testdata/addpkg_domain.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/addpkg_domain.txtar rename to gno.land/pkg/integration/testdata/addpkg_domain.txtar diff --git a/gno.land/cmd/gnoland/testdata/addpkg_invalid.txtar b/gno.land/pkg/integration/testdata/addpkg_invalid.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/addpkg_invalid.txtar rename to gno.land/pkg/integration/testdata/addpkg_invalid.txtar diff --git a/gno.land/cmd/gnoland/testdata/addpkg_namespace.txtar b/gno.land/pkg/integration/testdata/addpkg_namespace.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/addpkg_namespace.txtar rename to gno.land/pkg/integration/testdata/addpkg_namespace.txtar diff --git a/gno.land/cmd/gnoland/testdata/alloc_array.txtar b/gno.land/pkg/integration/testdata/alloc_array.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/alloc_array.txtar rename to gno.land/pkg/integration/testdata/alloc_array.txtar diff --git a/gno.land/cmd/gnoland/testdata/alloc_byte_slice.txtar b/gno.land/pkg/integration/testdata/alloc_byte_slice.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/alloc_byte_slice.txtar rename to gno.land/pkg/integration/testdata/alloc_byte_slice.txtar diff --git a/gno.land/cmd/gnoland/testdata/alloc_slice.txtar b/gno.land/pkg/integration/testdata/alloc_slice.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/alloc_slice.txtar rename to gno.land/pkg/integration/testdata/alloc_slice.txtar diff --git a/gno.land/cmd/gnoland/testdata/append.txtar b/gno.land/pkg/integration/testdata/append.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/append.txtar rename to gno.land/pkg/integration/testdata/append.txtar diff --git a/gno.land/cmd/gnoland/testdata/assertorigincall.txtar b/gno.land/pkg/integration/testdata/assertorigincall.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/assertorigincall.txtar rename to gno.land/pkg/integration/testdata/assertorigincall.txtar diff --git a/gno.land/cmd/gnoland/testdata/event_callback.txtar b/gno.land/pkg/integration/testdata/event_callback.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/event_callback.txtar rename to gno.land/pkg/integration/testdata/event_callback.txtar diff --git a/gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar b/gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar rename to gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar diff --git a/gno.land/cmd/gnoland/testdata/event_for_statement.txtar b/gno.land/pkg/integration/testdata/event_for_statement.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/event_for_statement.txtar rename to gno.land/pkg/integration/testdata/event_for_statement.txtar diff --git a/gno.land/cmd/gnoland/testdata/event_multi_msg.txtar b/gno.land/pkg/integration/testdata/event_multi_msg.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/event_multi_msg.txtar rename to gno.land/pkg/integration/testdata/event_multi_msg.txtar diff --git a/gno.land/cmd/gnoland/testdata/event_normal.txtar b/gno.land/pkg/integration/testdata/event_normal.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/event_normal.txtar rename to gno.land/pkg/integration/testdata/event_normal.txtar diff --git a/gno.land/cmd/gnoland/testdata/float_arg.txtar b/gno.land/pkg/integration/testdata/float_arg.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/float_arg.txtar rename to gno.land/pkg/integration/testdata/float_arg.txtar diff --git a/gno.land/cmd/gnoland/testdata/genesis_params.txtar b/gno.land/pkg/integration/testdata/genesis_params.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/genesis_params.txtar rename to gno.land/pkg/integration/testdata/genesis_params.txtar diff --git a/gno.land/cmd/gnoland/testdata/ghverify.txtar b/gno.land/pkg/integration/testdata/ghverify.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/ghverify.txtar rename to gno.land/pkg/integration/testdata/ghverify.txtar diff --git a/gno.land/cmd/gnoland/testdata/gnokey_simulate.txtar b/gno.land/pkg/integration/testdata/gnokey_simulate.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/gnokey_simulate.txtar rename to gno.land/pkg/integration/testdata/gnokey_simulate.txtar diff --git a/gno.land/cmd/gnoland/testdata/gnoweb_airgapped.txtar b/gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/gnoweb_airgapped.txtar rename to gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar diff --git a/gno.land/cmd/gnoland/testdata/grc20_invalid_address.txtar b/gno.land/pkg/integration/testdata/grc20_invalid_address.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/grc20_invalid_address.txtar rename to gno.land/pkg/integration/testdata/grc20_invalid_address.txtar diff --git a/gno.land/cmd/gnoland/testdata/grc20_registry.txtar b/gno.land/pkg/integration/testdata/grc20_registry.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/grc20_registry.txtar rename to gno.land/pkg/integration/testdata/grc20_registry.txtar diff --git a/gno.land/cmd/gnoland/testdata/grc721_emit.txtar b/gno.land/pkg/integration/testdata/grc721_emit.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/grc721_emit.txtar rename to gno.land/pkg/integration/testdata/grc721_emit.txtar diff --git a/gno.land/cmd/gnoland/testdata/initctx.txtar b/gno.land/pkg/integration/testdata/initctx.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/initctx.txtar rename to gno.land/pkg/integration/testdata/initctx.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_1167.txtar b/gno.land/pkg/integration/testdata/issue_1167.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_1167.txtar rename to gno.land/pkg/integration/testdata/issue_1167.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_1588.txtar b/gno.land/pkg/integration/testdata/issue_1588.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_1588.txtar rename to gno.land/pkg/integration/testdata/issue_1588.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_1786.txtar b/gno.land/pkg/integration/testdata/issue_1786.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_1786.txtar rename to gno.land/pkg/integration/testdata/issue_1786.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_2283.txtar b/gno.land/pkg/integration/testdata/issue_2283.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_2283.txtar rename to gno.land/pkg/integration/testdata/issue_2283.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_2283_cacheTypes.txtar b/gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_2283_cacheTypes.txtar rename to gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar diff --git a/gno.land/cmd/gnoland/testdata/issue_gnochess_97.txtar b/gno.land/pkg/integration/testdata/issue_gnochess_97.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/issue_gnochess_97.txtar rename to gno.land/pkg/integration/testdata/issue_gnochess_97.txtar diff --git a/gno.land/cmd/gnoland/testdata/maketx_call_pure.txtar b/gno.land/pkg/integration/testdata/maketx_call_pure.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/maketx_call_pure.txtar rename to gno.land/pkg/integration/testdata/maketx_call_pure.txtar diff --git a/gno.land/cmd/gnoland/testdata/map_delete.txtar b/gno.land/pkg/integration/testdata/map_delete.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/map_delete.txtar rename to gno.land/pkg/integration/testdata/map_delete.txtar diff --git a/gno.land/cmd/gnoland/testdata/map_storage.txtar b/gno.land/pkg/integration/testdata/map_storage.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/map_storage.txtar rename to gno.land/pkg/integration/testdata/map_storage.txtar diff --git a/gno.land/cmd/gnoland/testdata/panic.txtar b/gno.land/pkg/integration/testdata/panic.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/panic.txtar rename to gno.land/pkg/integration/testdata/panic.txtar diff --git a/gno.land/cmd/gnoland/testdata/params.txtar b/gno.land/pkg/integration/testdata/params.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/params.txtar rename to gno.land/pkg/integration/testdata/params.txtar diff --git a/gno.land/cmd/gnoland/testdata/prevrealm.txtar b/gno.land/pkg/integration/testdata/prevrealm.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/prevrealm.txtar rename to gno.land/pkg/integration/testdata/prevrealm.txtar diff --git a/gno.land/cmd/gnoland/testdata/realm_banker_issued_coin_denom.txtar b/gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/realm_banker_issued_coin_denom.txtar rename to gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar diff --git a/gno.land/cmd/gnoland/testdata/restart_missing_type.txtar b/gno.land/pkg/integration/testdata/restart_missing_type.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/restart_missing_type.txtar rename to gno.land/pkg/integration/testdata/restart_missing_type.txtar diff --git a/gno.land/cmd/gnoland/testdata/restart_nonval.txtar b/gno.land/pkg/integration/testdata/restart_nonval.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/restart_nonval.txtar rename to gno.land/pkg/integration/testdata/restart_nonval.txtar diff --git a/gno.land/cmd/gnoland/testdata/run.txtar b/gno.land/pkg/integration/testdata/run.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/run.txtar rename to gno.land/pkg/integration/testdata/run.txtar diff --git a/gno.land/cmd/gnoland/testdata/simulate_gas.txtar b/gno.land/pkg/integration/testdata/simulate_gas.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/simulate_gas.txtar rename to gno.land/pkg/integration/testdata/simulate_gas.txtar diff --git a/gno.land/cmd/gnoland/testdata/time_simple.txtar b/gno.land/pkg/integration/testdata/time_simple.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/time_simple.txtar rename to gno.land/pkg/integration/testdata/time_simple.txtar diff --git a/gno.land/cmd/gnoland/testdata/wugnot.txtar b/gno.land/pkg/integration/testdata/wugnot.txtar similarity index 100% rename from gno.land/cmd/gnoland/testdata/wugnot.txtar rename to gno.land/pkg/integration/testdata/wugnot.txtar From fba9234cd79d85669624081a2bbdb2598f690b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Tue, 10 Dec 2024 15:29:51 +0100 Subject: [PATCH 04/13] Improve the CI further --- .github/workflows/auto-author-assign.yml | 2 +- .github/workflows/autocounterd.yml | 6 +- .github/workflows/benchmark-master-push.yml | 5 +- .github/workflows/codeql.yml | 68 ++++----- .github/workflows/contribs.yml | 6 +- .github/workflows/dependabot-validate.yml | 2 +- .github/workflows/deploy-docs.yml | 4 +- .github/workflows/docs-linter.yml | 5 +- .github/workflows/examples.yml | 13 +- .github/workflows/fossa.yml | 12 ++ .github/workflows/genesis-verify.yml | 7 +- .github/workflows/gh-pages.yml | 5 +- .github/workflows/gnoland.yml | 10 +- .github/workflows/gnovm.yml | 12 +- .github/workflows/labeler.yml | 8 +- .github/workflows/lint-pr-title.yml | 2 +- .github/workflows/lint_template.yml | 1 - .github/workflows/main_template.yml | 2 +- .github/workflows/misc.yml | 9 +- .github/workflows/mod-tidy.yml | 12 +- .github/workflows/portal-loop.yml | 20 +-- .github/workflows/releaser-master.yml | 4 +- .github/workflows/releaser-nightly.yml | 2 +- .github/workflows/releaser.yml | 45 ------ .github/workflows/stale-bot.yml | 2 +- .github/workflows/test_template.yml | 146 +++++++++----------- .github/workflows/tm2.yml | 9 +- 27 files changed, 199 insertions(+), 220 deletions(-) delete mode 100644 .github/workflows/releaser.yml diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 06dfb4ab903..890e70da9ae 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -1,4 +1,4 @@ -name: auto-author-assign +name: Auto Assign PR Author on: pull_request_target: diff --git a/.github/workflows/autocounterd.yml b/.github/workflows/autocounterd.yml index f2a9650d672..dcba56178bd 100644 --- a/.github/workflows/autocounterd.yml +++ b/.github/workflows/autocounterd.yml @@ -1,13 +1,13 @@ -name: autocounterd +name: Portal Loop - autocounterd on: push: + branches: + - "master" paths: - misc/autocounterd - misc/loop - .github/workflows/autocounterd.yml - branches: - - "master" permissions: contents: read diff --git a/.github/workflows/benchmark-master-push.yml b/.github/workflows/benchmark-master-push.yml index 622baefc0de..b84cfb06475 100644 --- a/.github/workflows/benchmark-master-push.yml +++ b/.github/workflows/benchmark-master-push.yml @@ -1,4 +1,4 @@ -name: run benchmarks when pushing on main branch +name: Run and Save Benchmarks on: push: @@ -9,6 +9,7 @@ on: - gno.land/** - gnovm/** - tm2/** + - '**/*.go' permissions: # deployments permission to deploy GitHub pages website @@ -22,7 +23,7 @@ env: jobs: benchmarks: if: ${{ github.repository == 'gnolang/gno' }} - runs-on: [self-hosted, Linux, X64, benchmarks] + runs-on: [ self-hosted, Linux, X64, benchmarks ] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d2eef9d7445..270c422b3de 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,7 +9,7 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: "CodeQL" +name: CodeQL on: push: @@ -41,8 +41,8 @@ jobs: fail-fast: false matrix: include: - - language: go - build-mode: autobuild + - language: go + build-mode: autobuild # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -52,38 +52,38 @@ jobs: # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality - # If the analyze step fails for one of the languages you are analyzing with - # "We were unable to automatically build your code", modify the matrix above - # to set the build mode to "manual" for that language. Then modify this step - # to build your code. - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - if: matrix.build-mode == 'manual' - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - if: matrix.build-mode == 'manual' + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/contribs.yml b/.github/workflows/contribs.yml index 26114f2849f..32baedd2125 100644 --- a/.github/workflows/contribs.yml +++ b/.github/workflows/contribs.yml @@ -1,11 +1,13 @@ -name: contribs +name: Contribs CI Suite on: push: branches: - master - workflow_dispatch: pull_request: + paths: + - contribs/** + workflow_dispatch: jobs: setup: diff --git a/.github/workflows/dependabot-validate.yml b/.github/workflows/dependabot-validate.yml index 68506515710..3d7b2c315c6 100644 --- a/.github/workflows/dependabot-validate.yml +++ b/.github/workflows/dependabot-validate.yml @@ -1,4 +1,4 @@ -name: dependabot validate +name: Validate Dependabot Config on: pull_request: diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d800147a498..f180f1679b1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,4 +1,6 @@ -name: deploy docs on gnolang/docs.gno.land repository +# This workflow triggers a cross-repo workflow call, +# that deploys the monorepo docs on Netlify, using Docusaurus +name: Deploy the Documentation on: push: branches: diff --git a/.github/workflows/docs-linter.yml b/.github/workflows/docs-linter.yml index f4e1b198dee..d603d796ae9 100644 --- a/.github/workflows/docs-linter.yml +++ b/.github/workflows/docs-linter.yml @@ -1,9 +1,10 @@ -name: "docs linter" +name: Docs Linter on: - pull_request: + push: branches: - master + pull_request: paths: - "docs/**" diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 2ddf08ccf42..b14bad6b9c5 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1,13 +1,14 @@ -name: examples +name: Gno Examples CI Suite on: - pull_request: - paths: - - '**/*.gno' push: - branches: [ "master" ] + branches: + - master + pull_request: paths: - - '**/*.gno' + - gnovm/**/*.gno + - examples/**/*.gno + concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 41d9a2cba94..e8defd00f7c 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -1,6 +1,18 @@ name: Dependency License Scanning on: + push: + branches: + - master + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + pull_request: + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' workflow_dispatch: permissions: diff --git a/.github/workflows/genesis-verify.yml b/.github/workflows/genesis-verify.yml index 1288d588100..acc41cc99ad 100644 --- a/.github/workflows/genesis-verify.yml +++ b/.github/workflows/genesis-verify.yml @@ -1,9 +1,10 @@ -name: genesis-verify +name: Deployment genesis.json Verification on: - pull_request: + push: branches: - master + pull_request: paths: - "misc/deployments/**/genesis.json" - ".github/workflows/genesis-verify.yml" @@ -13,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - testnet: ["test5.gno.land"] + testnet: [ "test5.gno.land" ] runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5871ad00189..0b6240e2239 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,10 +1,11 @@ # generate Go docs and publish on gh-pages branch # Live at: https://gnolang.github.io/gno -name: gh-pages +name: Go Reference Docs Deployment on: push: - branches: [ "master" ] + branches: + - master workflow_dispatch: permissions: diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index de41e8c2963..8ba7af63cdc 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -1,11 +1,17 @@ -name: gno.land +name: gno.land CI Suite on: push: branches: - master - workflow_dispatch: pull_request: + paths: + - gno.land/** + # We trigger the testing workflow for gno.land on the following, + # since there are integration suites that cover the gnovm / tm2 + - gnovm/** + - tm2/** + workflow_dispatch: jobs: main: diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index a0d7756a901..aa7b670dda9 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -1,23 +1,27 @@ -name: gnovm +name: GnoVM CI Suite on: push: branches: - master - workflow_dispatch: pull_request: + paths: + - gnovm/** + - tm2/** # GnoVM has a dependency on TM2 types + workflow_dispatch: jobs: main: - name: Run Main + name: Run GnoVM suite uses: ./.github/workflows/main_template.yml with: modulepath: "gnovm" go-version: "1.22.x" + tests-extra-args: "-coverpkg=github.com/gnolang/gno/gnovm/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} fmt: - name: Run gno fmt + name: Run gno fmt on stdlibs uses: ./.github/workflows/gnofmt_template.yml with: path: "gnovm/stdlibs/..." diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 06b2daa1d3d..56075c31db3 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,6 @@ -name: "Pull Request Labeler" +name: Pull Request Labeler on: -- pull_request_target + - pull_request_target jobs: triage: @@ -9,5 +9,5 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/labeler@v5 + - uses: actions/checkout@v4 + - uses: actions/labeler@v5 diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index 631f764c37f..3c7236b264f 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -1,4 +1,4 @@ -name: "lint-pr-title" +name: PR Title Linter on: pull_request_target: diff --git a/.github/workflows/lint_template.yml b/.github/workflows/lint_template.yml index b7568d19c41..43246572daa 100644 --- a/.github/workflows/lint_template.yml +++ b/.github/workflows/lint_template.yml @@ -8,7 +8,6 @@ on: required: true type: string - jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/main_template.yml b/.github/workflows/main_template.yml index ca8bc43cfd7..4cfd49fb1ed 100644 --- a/.github/workflows/main_template.yml +++ b/.github/workflows/main_template.yml @@ -17,7 +17,7 @@ on: jobs: lint: - name: Go Linter + name: Go Lint uses: ./.github/workflows/lint_template.yml with: modulepath: ${{ inputs.modulepath }} diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 24a9ccdb284..622c62d9a92 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -1,13 +1,15 @@ # tests the "misc" directory & tools # (not meant for miscellaneous workflows) -name: misc +name: misc CI Suite on: push: branches: - master - workflow_dispatch: pull_request: + paths: + - misc/** + workflow_dispatch: jobs: main: @@ -21,10 +23,11 @@ jobs: - genstd - goscan - loop - name: Run Main + name: Run misc suite uses: ./.github/workflows/main_template.yml with: modulepath: misc/${{ matrix.program }} go-version: "1.22.x" + tests-extra-args: "-coverpkg=github.com/gnolang/gno/misc/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/mod-tidy.yml b/.github/workflows/mod-tidy.yml index 24eab553d19..5b6401b0d13 100644 --- a/.github/workflows/mod-tidy.yml +++ b/.github/workflows/mod-tidy.yml @@ -1,11 +1,19 @@ -name: Ensure go.mods are tidied +name: go.mod Tidy Checker on: push: branches: - master - workflow_dispatch: + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' pull_request: + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + workflow_dispatch: jobs: main: diff --git a/.github/workflows/portal-loop.yml b/.github/workflows/portal-loop.yml index b898a149e9d..478c5a8280c 100644 --- a/.github/workflows/portal-loop.yml +++ b/.github/workflows/portal-loop.yml @@ -1,19 +1,13 @@ -name: portal-loop +name: Portal Loop CI Suite on: - pull_request: - branches: - - master push: + branches: + - "master" + pull_request: paths: - "misc/loop/**" - ".github/workflows/portal-loop.yml" - branches: - - "master" - # NOTE(albttx): branch name to simplify tests for this workflow - - "ci/portal-loop" - tags: - - "v*" permissions: contents: read @@ -69,14 +63,14 @@ jobs: while block_height=$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height') echo "Current block height: $block_height" - [[ "$block_height" -lt 10 ]] + [[ "$block_height" -lt 2 ]] do sleep 1 done curl -s localhost:26657/status | jq - - name: "Buid new gnolang/gno image" + - name: "Build new gnolang/gno image" run: | docker build -t ghcr.io/gnolang/gno/gnoland:master -f Dockerfile --target gnoland . @@ -96,7 +90,7 @@ jobs: while block_height=$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height') echo "Current block height: $block_height" - [[ "$block_height" -lt 10 ]] + [[ "$block_height" -lt 2 ]] do sleep 5 done diff --git a/.github/workflows/releaser-master.yml b/.github/workflows/releaser-master.yml index 3d194e2cb4c..6e3eed31914 100644 --- a/.github/workflows/releaser-master.yml +++ b/.github/workflows/releaser-master.yml @@ -1,9 +1,9 @@ -name: Trigger master build +name: Master Releases on: push: branches: - - "master" + - master workflow_dispatch: permissions: diff --git a/.github/workflows/releaser-nightly.yml b/.github/workflows/releaser-nightly.yml index 4308f1c4a7d..4f6e636af1b 100644 --- a/.github/workflows/releaser-nightly.yml +++ b/.github/workflows/releaser-nightly.yml @@ -1,4 +1,4 @@ -name: Trigger nightly build +name: Nightly Releases on: schedule: diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml deleted file mode 100644 index 309664bdcce..00000000000 --- a/.github/workflows/releaser.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Go Releaser - -on: - push: - tags: - - "v*" - -permissions: - contents: write # needed to write releases - id-token: write # needed for keyless signing - packages: write # needed for ghcr access - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - cache: true - - - uses: sigstore/cosign-installer@v3.7.0 - - uses: anchore/sbom-action/download-syft@v0.17.8 - - - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser-pro - version: ~> v2 - args: release --clean --config ./.github/goreleaser.yaml - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 55a17ac60a8..6eb38ac5728 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,4 +1,4 @@ -name: "Close stale PRs" +name: Stale PR Bot on: schedule: - cron: "30 1 * * *" diff --git a/.github/workflows/test_template.yml b/.github/workflows/test_template.yml index c7956b4caf4..a1bc58ecebb 100644 --- a/.github/workflows/test_template.yml +++ b/.github/workflows/test_template.yml @@ -1,84 +1,70 @@ on: - workflow_call: - inputs: - modulepath: - required: true - type: string - tests-timeout: - required: true - type: string - go-version: - required: true - type: string - tests-extra-args: - required: false - type: string - secrets: - codecov-token: - required: true + workflow_call: + inputs: + modulepath: + required: true + type: string + tests-timeout: + required: true + type: string + go-version: + required: true + type: string + tests-extra-args: + required: false + type: string + secrets: + codecov-token: + required: true jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ inputs.go-version }} - - name: Go test - working-directory: ${{ inputs.modulepath }} - env: - TXTARCOVERDIR: /tmp/txtarcoverdir # txtar cover output - GOCOVERDIR: /tmp/gocoverdir # go cover output - COVERDIR: /tmp/coverdir # final output - run: | - set -x # print commands + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ inputs.go-version }} + - name: Go test + working-directory: ${{ inputs.modulepath }} + env: + TXTARCOVERDIR: /tmp/txtarcoverdir # txtar cover output + GOCOVERDIR: /tmp/gocoverdir # go cover output + COVERDIR: /tmp/coverdir # final output + run: | + set -x # print commands + + mkdir -p "$GOCOVERDIR" "$TXTARCOVERDIR" "$COVERDIR" + + # Craft a filter flag based on the module path to avoid expanding coverage on unrelated tags. + export filter="-pkg=github.com/gnolang/gno/${{ inputs.modulepath }}/..." + + # codecov only supports "boolean" coverage (whether a line is + # covered or not); so using -covermode=count or atomic would be + # pointless here. + # XXX: Simplify coverage of txtar - the current setup is a bit + # confusing and meticulous. There will be some improvements in Go + # 1.23 regarding coverage, so we can use this as a workaround until + # then. + go test -covermode=set -timeout ${{ inputs.tests-timeout }} ${{ inputs.tests-extra-args }} ./... -test.gocoverdir=$GOCOVERDIR + + # Print results + (set +x; echo 'go coverage results:') + go tool covdata percent $filter -i=$GOCOVERDIR + (set +x; echo 'txtar coverage results:') + go tool covdata percent $filter -i=$TXTARCOVERDIR + + # Generate final coverage output + go tool covdata textfmt -v 1 $filter -i=$GOCOVERDIR,$TXTARCOVERDIR -o gocoverage.out - mkdir -p "$GOCOVERDIR" "$TXTARCOVERDIR" "$COVERDIR" - - # Craft a filter flag based on the module path to avoid expanding coverage on unrelated tags. - export filter="-pkg=github.com/gnolang/gno/${{ inputs.modulepath }}/..." - - # codecov only supports "boolean" coverage (whether a line is - # covered or not); so using -covermode=count or atomic would be - # pointless here. - # XXX: Simplify coverage of txtar - the current setup is a bit - # confusing and meticulous. There will be some improvements in Go - # 1.23 regarding coverage, so we can use this as a workaround until - # then. - go test -covermode=set -timeout ${{ inputs.tests-timeout }} ${{ inputs.tests-extra-args }} ./... -test.gocoverdir=$GOCOVERDIR - - # Print results - (set +x; echo 'go coverage results:') - go tool covdata percent $filter -i=$GOCOVERDIR - (set +x; echo 'txtar coverage results:') - go tool covdata percent $filter -i=$TXTARCOVERDIR - - # Generate final coverage output - go tool covdata textfmt -v 1 $filter -i=$GOCOVERDIR,$TXTARCOVERDIR -o gocoverage.out - - - name: Upload go coverage to Codecov - uses: codecov/codecov-action@v5 - with: - disable_search: true - fail_ci_if_error: true - files: ${{ inputs.modulepath }}/gocoverage.out - flags: ${{ inputs.modulepath }} - token: ${{ secrets.codecov-token }} - verbose: true # keep this enable as it help debugging when coverage fail randomly on the CI - - # TODO: We have to fix race conditions before running this job - # test-with-race: - # runs-on: ubuntu-latest - # steps: - # - name: Install Go - # uses: actions/setup-go@v5 - # with: - # go-version: ${{ inputs.go-version }} - # - name: Checkout code - # uses: actions/checkout@v4 - # - name: Go race test - # run: go test -race -timeout ${{ inputs.tests-timeout }} ./... - # working-directory: ${{ inputs.modulepath }} + - name: Upload go coverage to Codecov + uses: codecov/codecov-action@v5 + with: + disable_search: true + fail_ci_if_error: true + files: ${{ inputs.modulepath }}/gocoverage.out + flags: ${{ inputs.modulepath }} + token: ${{ secrets.codecov-token }} + verbose: true # keep this enable as it help debugging when coverage fails randomly on the CI diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 41c60fe5a52..995b98eea9e 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -1,18 +1,21 @@ -name: tm2 +name: TM2 CI Suite on: push: branches: - master - workflow_dispatch: pull_request: + paths: + - tm2/** + workflow_dispatch: jobs: main: - name: Run Main + name: Run TM2 suite uses: ./.github/workflows/main_template.yml with: modulepath: "tm2" go-version: "1.22.x" + tests-extra-args: "-coverpkg=github.com/gnolang/gno/tm2/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} From 6027a083260037c29e4bf1775641929ff60af4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Tue, 10 Dec 2024 15:41:00 +0100 Subject: [PATCH 05/13] Update codecov.yml --- .github/codecov.yml | 57 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index d1ecba7ade3..75766735de1 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -4,7 +4,7 @@ codecov: wait_for_ci: true comment: - require_changes: false + require_changes: true coverage: round: down @@ -13,7 +13,7 @@ coverage: project: default: target: auto - threshold: 10 # Let's decrease this later. + threshold: 5 # Let's decrease this later. base: parent if_no_uploads: error if_not_found: success @@ -22,12 +22,12 @@ coverage: patch: default: target: auto - threshold: 10 # Let's decrease this later. + threshold: 5 # Let's decrease this later. base: auto if_no_uploads: error if_not_found: success if_ci_failed: error - only_pulls: false + only_pulls: true # Only check patch coverage on PRs flag_management: default_rules: @@ -40,6 +40,55 @@ flag_management: target: auto # Let's decrease this later. threshold: 10 + groups: + gno-land: + paths: + - "gno.land/**" + flags: + - gno-land + gnovm: + paths: + - "gnovm/**" + flags: + - gnovm + misc: + paths: + - "misc/**" + flags: + - misc + tm2: + paths: + - "tm2/**" + flags: + - tm2 + contribs: + paths: + - "contribs/**" + flags: + - contribs + + statuses: + - type: project + flag: gno-land + target: auto + threshold: 5 + - type: project + flag: gnovm + target: auto + threshold: 2 # Stricter threshold + - type: project + flag: misc + target: auto + threshold: 10 + - type: project + flag: tm2 + target: auto + threshold: 5 + - type: project + flag: contribs + target: auto + threshold: 5 + ignore: - "gnovm/stdlibs/generated.go" - "gnovm/tests/stdlibs/generated.go" From 782b78c06b4348592a9488e56c80424fd9603654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Tue, 10 Dec 2024 15:47:30 +0100 Subject: [PATCH 06/13] Minor tidy of golangci.yml --- .github/golangci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/golangci.yml b/.github/golangci.yml index b8bd5537135..fe356b52fff 100644 --- a/.github/golangci.yml +++ b/.github/golangci.yml @@ -44,9 +44,11 @@ linters: linters-settings: gofmt: simplify: true + goconst: min-len: 3 min-occurrences: 3 + gosec: excludes: - G204 # Subprocess launched with a potential tainted input or cmd arguments @@ -56,6 +58,7 @@ linters-settings: checks: [ "all", "-ST1022", "-ST1003" ] errorlint: asserts: false + gocritic: enabled-tags: - diagnostic @@ -63,10 +66,11 @@ linters-settings: - opinionated - performance - style + forbidigo: forbid: - p: '^regexp\.(Match|MatchString)$' - msg: it will re-compile the regexp for each execution; compile the regexp with regexp.Compile and store it as a singleton + msg: "Use compiled regex via regexp.Compile and store as a singleton" issues: whole-files: true @@ -74,6 +78,7 @@ issues: max-same-issues: 0 new: false fix: false + exclude-rules: - path: _test\.go linters: From 579bd759aa179c46ee135b2e10ea075a7b08ac5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:09:01 +0100 Subject: [PATCH 07/13] Revert golangci error message --- .github/golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/golangci.yml b/.github/golangci.yml index fe356b52fff..ca85620b7e6 100644 --- a/.github/golangci.yml +++ b/.github/golangci.yml @@ -70,7 +70,7 @@ linters-settings: forbidigo: forbid: - p: '^regexp\.(Match|MatchString)$' - msg: "Use compiled regex via regexp.Compile and store as a singleton" + msg: it will re-compile the regexp for each execution; compile the regexp with regexp.Compile and store it as a singleton issues: whole-files: true From d0fe7083e0923616594c45ec79486ddbf74c325c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:10:50 +0100 Subject: [PATCH 08/13] Drop excessive workflow name --- .github/workflows/contribs.yml | 2 +- .github/workflows/examples.yml | 2 +- .github/workflows/gnoland.yml | 2 +- .github/workflows/gnovm.yml | 2 +- .github/workflows/misc.yml | 2 +- .github/workflows/portal-loop.yml | 2 +- .github/workflows/tm2.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/contribs.yml b/.github/workflows/contribs.yml index 32baedd2125..d2e5feba2cb 100644 --- a/.github/workflows/contribs.yml +++ b/.github/workflows/contribs.yml @@ -1,4 +1,4 @@ -name: Contribs CI Suite +name: Contribs on: push: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b14bad6b9c5..ab440ae1d51 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1,4 +1,4 @@ -name: Gno Examples CI Suite +name: Gno Examples on: push: diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 8ba7af63cdc..688f8ef7fc1 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -1,4 +1,4 @@ -name: gno.land CI Suite +name: gno.land on: push: diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index aa7b670dda9..24eb3162ffa 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -1,4 +1,4 @@ -name: GnoVM CI Suite +name: GnoVM on: push: diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 622c62d9a92..a013efcaf02 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -1,6 +1,6 @@ # tests the "misc" directory & tools # (not meant for miscellaneous workflows) -name: misc CI Suite +name: misc on: push: diff --git a/.github/workflows/portal-loop.yml b/.github/workflows/portal-loop.yml index 478c5a8280c..b5cafa459a7 100644 --- a/.github/workflows/portal-loop.yml +++ b/.github/workflows/portal-loop.yml @@ -1,4 +1,4 @@ -name: Portal Loop CI Suite +name: Portal Loop on: push: diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 995b98eea9e..008b27b66ba 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -1,4 +1,4 @@ -name: TM2 CI Suite +name: TM2 on: push: From 90871c266d491478244f1485f9b3b967331a4e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:18:28 +0100 Subject: [PATCH 09/13] Add .editorconfig --- .github/.editorconfig | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/.editorconfig diff --git a/.github/.editorconfig b/.github/.editorconfig new file mode 100644 index 00000000000..751cd705457 --- /dev/null +++ b/.github/.editorconfig @@ -0,0 +1,8 @@ +# Make sure this is the top-level editorconfig +# https://editorconfig.org/ +root = true + +# GitHub Actions Workflows +[workflows/**.yml] +indent_style = space +indent_size = 2 From f5ca5d627928a2c7c5eea78d9044d6f8bfe53628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:24:53 +0100 Subject: [PATCH 10/13] Remove redundant flags --- .github/codecov.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 75766735de1..3b1f58ac10d 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -44,32 +44,22 @@ flag_management: gno-land: paths: - "gno.land/**" - flags: - - gno-land gnovm: paths: - "gnovm/**" - flags: - - gnovm misc: paths: - "misc/**" - flags: - - misc tm2: paths: - "tm2/**" - flags: - - tm2 contribs: paths: - "contribs/**" - flags: - - contribs statuses: - type: project - flag: gno-land + flag: gno.land target: auto threshold: 5 - type: project From 79a6cc45895b4cb78f69372cae7dc65cf0aed06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:28:21 +0100 Subject: [PATCH 11/13] Make go changes explicit --- .github/workflows/benchmark-master-push.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark-master-push.yml b/.github/workflows/benchmark-master-push.yml index b84cfb06475..1c054077a3a 100644 --- a/.github/workflows/benchmark-master-push.yml +++ b/.github/workflows/benchmark-master-push.yml @@ -5,11 +5,10 @@ on: branches: - master paths: - - contribs/** - - gno.land/** - - gnovm/** - - tm2/** - - '**/*.go' + - contribs/**/*.go + - gno.land/**/*.go + - gnovm/**/*.go + - tm2/**/*.go permissions: # deployments permission to deploy GitHub pages website From 8bfcfcddf95fc27d95126c88b1a623419fb04abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 15:44:27 +0100 Subject: [PATCH 12/13] Standardize go version --- .github/workflows/contribs.yml | 25 +++++++++++++++++++++++-- .github/workflows/examples.yml | 1 - .github/workflows/gnofmt_template.yml | 3 ++- .github/workflows/gnoland.yml | 1 - .github/workflows/gnovm.yml | 2 -- .github/workflows/main_template.yml | 3 ++- .github/workflows/misc.yml | 1 - .github/workflows/tm2.yml | 1 - 8 files changed, 27 insertions(+), 10 deletions(-) diff --git a/.github/workflows/contribs.yml b/.github/workflows/contribs.yml index d2e5feba2cb..c1de5e78c35 100644 --- a/.github/workflows/contribs.yml +++ b/.github/workflows/contribs.yml @@ -14,10 +14,31 @@ jobs: runs-on: ubuntu-latest outputs: programs: ${{ steps.set-matrix.outputs.programs }} + go-versions: ${{ steps.get-go-versions.outputs.go-versions }} steps: - uses: actions/checkout@v4 + - id: set-matrix - run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')" + run: | + echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')" + + - id: get-go-versions + run: | + contribs_programs=$(ls -d contribs/*/ | cut -d/ -f2) + versions_map="{" + + for p in $contribs_programs; do + # Fetch the go version of the contribs entry, and save it + # to a versions map we can reference later in the workflow + go_version=$(grep "^go [0-9]" contribs/$p/go.mod | cut -d ' ' -f2) + versions_map="$versions_map\"$p\":\"$go_version\"," + done + + # Close out the JSON + versions_map="${versions_map%,}" + versions_map="$versions_map}" + echo "::set-output name=go-versions::$versions_map" + main: needs: setup strategy: @@ -28,6 +49,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: contribs/${{ matrix.program }} - go-version: "1.22.x" + go-version: ${{ (fromJson(needs.setup.outputs.go-versions))[matrix.program] }} secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index ab440ae1d51..e441d9c1dad 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -78,7 +78,6 @@ jobs: uses: ./.github/workflows/gnofmt_template.yml with: path: "examples/..." - go-version: "1.22.x" - name: Check for unformatted gno files run: | git diff --exit-code || (echo "Some gno files are not formatted, please run 'make fmt'." && exit 1) diff --git a/.github/workflows/gnofmt_template.yml b/.github/workflows/gnofmt_template.yml index 8d4b38f8121..aa85d52097e 100644 --- a/.github/workflows/gnofmt_template.yml +++ b/.github/workflows/gnofmt_template.yml @@ -7,8 +7,9 @@ on: type: string go-version: description: "Go version to use" - required: true + required: false type: string + default: "1.22.x" jobs: fmt: diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 688f8ef7fc1..92c03c92fe7 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -19,7 +19,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: "gno.land" - go-version: "1.22.x" tests-extra-args: "-coverpkg=github.com/gnolang/gno/gno.land/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index 24eb3162ffa..7a015b74e09 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -16,7 +16,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: "gnovm" - go-version: "1.22.x" tests-extra-args: "-coverpkg=github.com/gnolang/gno/gnovm/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} @@ -25,4 +24,3 @@ jobs: uses: ./.github/workflows/gnofmt_template.yml with: path: "gnovm/stdlibs/..." - go-version: "1.22.x" diff --git a/.github/workflows/main_template.yml b/.github/workflows/main_template.yml index 4cfd49fb1ed..a463bb330ea 100644 --- a/.github/workflows/main_template.yml +++ b/.github/workflows/main_template.yml @@ -9,8 +9,9 @@ on: type: string go-version: description: "Go version to use" - required: true + required: false type: string + default: "1.22.x" secrets: codecov-token: required: true diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index a013efcaf02..1116a87c300 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -27,7 +27,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: misc/${{ matrix.program }} - go-version: "1.22.x" tests-extra-args: "-coverpkg=github.com/gnolang/gno/misc/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 008b27b66ba..757391eab8c 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -15,7 +15,6 @@ jobs: uses: ./.github/workflows/main_template.yml with: modulepath: "tm2" - go-version: "1.22.x" tests-extra-args: "-coverpkg=github.com/gnolang/gno/tm2/..." secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} From 66525c0487650114c49701a065e17db150ec5a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Wed, 18 Dec 2024 16:26:50 +0100 Subject: [PATCH 13/13] Drop removed codecov configs --- .github/codecov.yml | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 3b1f58ac10d..f0cb9583cf2 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -40,45 +40,6 @@ flag_management: target: auto # Let's decrease this later. threshold: 10 - groups: - gno-land: - paths: - - "gno.land/**" - gnovm: - paths: - - "gnovm/**" - misc: - paths: - - "misc/**" - tm2: - paths: - - "tm2/**" - contribs: - paths: - - "contribs/**" - - statuses: - - type: project - flag: gno.land - target: auto - threshold: 5 - - type: project - flag: gnovm - target: auto - threshold: 2 # Stricter threshold - - type: project - flag: misc - target: auto - threshold: 10 - - type: project - flag: tm2 - target: auto - threshold: 5 - - type: project - flag: contribs - target: auto - threshold: 5 - ignore: - "gnovm/stdlibs/generated.go" - "gnovm/tests/stdlibs/generated.go"