-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(x/crisis): extract as go standalone go module #18378
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1191,3 +1191,34 @@ jobs: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
with: | ||
projectBaseDir: x/mint/ | ||
|
||
test-x-crisis: | ||
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/crisis/go.sum | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
x/crisis/**/*.go | ||
x/crisis/go.mod | ||
x/crisis/go.sum | ||
- name: tests | ||
if: env.GIT_DIFF | ||
run: | | ||
cd x/crisis | ||
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./... | ||
- 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/crisis/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -59,6 +59,8 @@ import ( | |||||||||||||||||||||||||||||
_ "cosmossdk.io/x/upgrade" // import for side-effects | ||||||||||||||||||||||||||||||
upgradetypes "cosmossdk.io/x/upgrade/types" | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
_ "cosmossdk.io/x/crisis" // import for side-effects | ||||||||||||||||||||||||||||||
crisistypes "cosmossdk.io/x/crisis/types" | ||||||||||||||||||||||||||||||
"github.com/cosmos/cosmos-sdk/runtime" | ||||||||||||||||||||||||||||||
"github.com/cosmos/cosmos-sdk/types/module" | ||||||||||||||||||||||||||||||
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects | ||||||||||||||||||||||||||||||
|
@@ -67,8 +69,6 @@ import ( | |||||||||||||||||||||||||||||
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" | ||||||||||||||||||||||||||||||
_ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects | ||||||||||||||||||||||||||||||
consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" | ||||||||||||||||||||||||||||||
_ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects | ||||||||||||||||||||||||||||||
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" | ||||||||||||||||||||||||||||||
"github.com/cosmos/cosmos-sdk/x/genutil" | ||||||||||||||||||||||||||||||
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" | ||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||
Comment on lines
69
to
74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The import paths for the - _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects
- consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
+ _ "cosmossdk.io/x/consensus" // import for side-effects
+ consensustypes "cosmossdk.io/x/consensus/types" Commitable suggestion
Suggested change
|
||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ Ref: https://keepachangelog.com/en/1.0.0/ | |
|
||
# Changelog | ||
|
||
## [Unreleased] | ||
## [Unreleased] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will be making the test-x-crisis required once this PR is merged.