chore: add tooling and docs for hubl (#14743)

Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
Julien Robert
2023-01-23 22:12:22 +01:00
committed by GitHub
co-authored by Aaron Craelius
parent 14c965920f
commit 98888e4ee7
18 changed files with 224 additions and 16 deletions
+3
View File
@@ -56,3 +56,6 @@ jobs:
- name: Build Confix
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} make confix
- name: Build Hubl
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} make hubl
+30
View File
@@ -552,6 +552,36 @@ jobs:
with:
projectBaseDir: tools/confix/
test-hubl:
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: tools/hubl/go.sum
- uses: technote-space/get-diff-action@v6.1.2
id: git_diff
with:
PATTERNS: |
tools/hubl/**/*.go
tools/hubl/go.mod
tools/hubl/go.sum
- name: tests
if: env.GIT_DIFF
run: |
cd tools/hubl
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
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: tools/hubl/
#############################
### Cosmos SDK x/{module} ###
#############################