diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0597be4c6efb..f53f36cbc743 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -223,6 +223,15 @@ updates: labels: - "A:automerge" - dependencies + - package-ecosystem: gomod + directory: "/x/pool" + schedule: + interval: weekly + day: wednesday + time: "03:00" + labels: + - "A:automerge" + - dependencies # Dependencies should be up to date on release branch - package-ecosystem: gomod diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml index 7301a2f62900..9a357ed4fe74 100644 --- a/.github/pr_labeler.yml +++ b/.github/pr_labeler.yml @@ -39,6 +39,8 @@ - x/consensus/**/* "C:x/circuit": - x/circuit/**/* +"C:x/pool": + - x/pool/**/* "C:x/tx": - x/tx/**/* "C:collections": diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fac5563404a9..05941e849bbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -790,6 +790,37 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: projectBaseDir: x/circuit/ + + test-x-pool: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: "1.21" + check-latest: true + cache: true + cache-dependency-path: x/pool/go.sum + - uses: technote-space/get-diff-action@v6.1.2 + id: git_diff + with: + PATTERNS: | + x/pool/**/*.go + x/pool/go.mod + x/pool/go.sum + - name: tests + if: env.GIT_DIFF + run: | + cd x/pool + 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 && env.SONAR_TOKEN != null }} + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + projectBaseDir: x/pool/ test-x-feegrant: runs-on: ubuntu-latest diff --git a/x/pool/README.md b/x/pool/README.md new file mode 100644 index 000000000000..1c9a1ea94399 --- /dev/null +++ b/x/pool/README.md @@ -0,0 +1,6 @@ +--- +sidebar_position: 1 +--- + +# `x/pool` + diff --git a/x/pool/sonar-project.properties b/x/pool/sonar-project.properties new file mode 100644 index 000000000000..9721c7301fee --- /dev/null +++ b/x/pool/sonar-project.properties @@ -0,0 +1,14 @@ +sonar.projectKey=cosmos-sdk-x-pool +sonar.organization=cosmos + +sonar.projectName=Cosmos SDK - x/pool +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 \ No newline at end of file