refactor: create go.mod for store (#14746)

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Likhita Polavarapu
2023-01-25 13:31:56 +00:00
committed by GitHub
co-authored by Marko
parent 5d25d5f40a
commit 7559d9ecd3
325 changed files with 1627 additions and 639 deletions
+30
View File
@@ -582,6 +582,36 @@ jobs:
with:
projectBaseDir: tools/hubl/
test-store:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.4
cache: true
cache-dependency-path: store/go.sum
- uses: technote-space/get-diff-action@v6.1.2
id: git_diff
with:
PATTERNS: |
store/**/*.go
store/go.mod
store/go.sum
- name: tests
if: env.GIT_DIFF
run: |
cd store
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb_build' ./...
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: store/
#############################
### Cosmos SDK x/{module} ###
#############################