Skip to content

Commit

Permalink
lint, build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jul 8, 2024
1 parent 2784347 commit 04fd8b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.12"
go-version: "1.22"
cache: true
cache-dependency-path: indexer/postgres/tests/go.sum
- uses: technote-space/get-diff-action@v6.1.2
Expand All @@ -509,11 +509,11 @@ jobs:
if: env.GIT_DIFF
run: |
cd indexer/postgres
go test -mod=readonly -timeout 30m -coverprofile=cov1.out -covermode=atomic ./...
go test -mod=readonly -timeout 30m -coverprofile=cov.out -covermode=atomic ./...
cd tests
go test -mod=readonly -timeout 30m -coverprofile=cov2.out -covermode=atomic -coverpkg=cosmossdk.io/indexer/postgres ./...
go test -mod=readonly -timeout 30m -coverprofile=cov.out -covermode=atomic -coverpkg=cosmossdk.io/indexer/postgres ./...
cd ..
go run github.com/dylandreimerink/gocovmerge/cmd/gocovmerge@latest cov1.out tests/cov2.out > coverage.out
go run github.com/dylandreimerink/gocovmerge/cmd/gocovmerge@latest cov.out tests/cov.out > coverage.out
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/sonarcloud-github-action@master
Expand Down
4 changes: 2 additions & 2 deletions indexer/postgres/create_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"cosmossdk.io/schema"
)

func ExampleCreateTable_AllKinds() {
func ExampleTableManager_CreateTableSql_allKinds() {
exampleCreateTable(testdata.AllKindsObject)
// Output:
// CREATE TABLE IF NOT EXISTS "test_all_kinds" ("id" BIGINT NOT NULL,
Expand Down Expand Up @@ -37,7 +37,7 @@ func ExampleCreateTable_AllKinds() {
// GRANT SELECT ON TABLE "test_all_kinds" TO PUBLIC;
}

func ExampleCreateTable_Singleton() {
func ExampleTableManager_CreateTableSql_singleton() {
exampleCreateTable(testdata.SingletonObject)
// Output:
// CREATE TABLE IF NOT EXISTS "test_singleton" (_id INTEGER NOT NULL CHECK (_id = 1),
Expand Down
2 changes: 1 addition & 1 deletion indexer/postgres/enum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"cosmossdk.io/indexer/postgres/internal/testdata"
)

func ExampleCreateEnumType() {
func ExampleCreateEnumTypeSql() {
err := CreateEnumTypeSql(os.Stdout, "test", testdata.MyEnum)
if err != nil {
panic(err)
Expand Down

0 comments on commit 04fd8b4

Please sign in to comment.