From 93abfdd21d9892550da315b10308519b43fb1775 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 8 Dec 2022 23:44:22 +0100 Subject: [PATCH] ci: add tooling for collections module (#14231) --- .github/dependabot.yml | 7 ++++++ .github/labeler.yml | 2 ++ .github/workflows/test.yml | 8 +++++++ collections/CHANGELOG.md | 34 ++++++++++++++++++++++++++++ collections/sonar-project.properties | 15 ++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 collections/CHANGELOG.md create mode 100644 collections/sonar-project.properties diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 791105122c..19abeef68f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: diff --git a/.github/labeler.yml b/.github/labeler.yml index 3810af19e9..30a60a67fa 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -37,6 +37,8 @@ - x/upgrade/**/* "C:x/consensus": - x/consensus/**/* +"C:collections": + - collections/**/* "C:Cosmovisor": - tools/cosmovisor/**/* "C:Rosetta": diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 773f70b5de..0c85071d44 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/collections/CHANGELOG.md b/collections/CHANGELOG.md new file mode 100644 index 0000000000..1ae5e703a9 --- /dev/null +++ b/collections/CHANGELOG.md @@ -0,0 +1,34 @@ + + +# Changelog + +## [Unreleased] + +* [#14134](https://github.com/cosmos/cosmos-sdk/pull/14134) Initialise core (Prefix, KeyEncoder, ValueEncoder, Map). diff --git a/collections/sonar-project.properties b/collections/sonar-project.properties new file mode 100644 index 0000000000..9dd364b6f5 --- /dev/null +++ b/collections/sonar-project.properties @@ -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 \ No newline at end of file