ci: add tooling for collections module (#14231)

This commit is contained in:
Julien Robert
2022-12-08 22:44:22 +00:00
committed by GitHub
parent 4e2196fcc3
commit 93abfdd21d
5 changed files with 66 additions and 0 deletions
+7
View File
@@ -102,6 +102,13 @@ updates:
- dependencies
- package-ecosystem: gomod
directory: "/tools/rosetta"
schedule:
interval: weekly
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/collections"
schedule:
interval: weekly
labels:
+2
View File
@@ -37,6 +37,8 @@
- x/upgrade/**/*
"C:x/consensus":
- x/consensus/**/*
"C:collections":
- collections/**/*
"C:Cosmovisor":
- tools/cosmovisor/**/*
"C:Rosetta":
+8
View File
@@ -513,6 +513,14 @@ jobs:
run: |
cd collections
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_COLLECTIONS }}
with:
projectBaseDir: collections/
test-cosmovisor:
runs-on: ubuntu-latest
+34
View File
@@ -0,0 +1,34 @@
<!--
Guiding Principles:
Changelogs are for humans, not machines.
There should be an entry for every single version.
The same types of changes should be grouped.
Versions and sections should be linkable.
The latest version comes first.
The release date of each version is displayed.
Mention whether you follow Semantic Versioning.
Usage:
Change log entries are to be added to the Unreleased section under the
appropriate stanza (see below). Each entry should ideally include a tag and
the Github issue reference in the following format:
* (<tag>) [#<issue-number>] Changelog message.
Types of changes (Stanzas):
"Features" for new features.
"Improvements" for changes in existing functionality.
"Deprecated" for soon-to-be removed features.
"Bug Fixes" for any bug fixes.
"API Breaking" for breaking exported APIs used by developers building on SDK.
Ref: https://keepachangelog.com/en/1.0.0/
-->
# Changelog
## [Unreleased]
* [#14134](https://github.com/cosmos/cosmos-sdk/pull/14134) Initialise core (Prefix, KeyEncoder, ValueEncoder, Map).
+15
View File
@@ -0,0 +1,15 @@
sonar.projectKey=cosmos-sdk-collections
sonar.organization=cosmos
sonar.projectName=Cosmos SDK - Collections
sonar.project.monorepo.enabled=true
sonar.sources=.
sonar.exclusions=**/*_test.go
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.go.coverage.reportPaths=coverage.out
sonar.sourceEncoding=UTF-8
sonar.scm.provider=git
sonar.pullrequest.github.summary_comment=true