forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/release/v0.39.1' into release/…
…v0.39.1-celer.1
- Loading branch information
Showing
93 changed files
with
1,583 additions
and
901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Lint | ||
on: [pull_request] | ||
jobs: | ||
golangci: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: golangci/golangci-lint-action@master | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.28 | ||
args: --timeout 10m | ||
github-token: ${{ secrets.github_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release Sims | ||
on: | ||
pull_request: | ||
branches: | ||
- "rc**" | ||
|
||
jobs: | ||
cleanup-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: rokroskar/workflow-run-cleanup-action@master | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
make build | ||
install-runsim: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: install runsim | ||
run: | | ||
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
||
test-sim-multi-seed-long: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
- name: test-sim-multi-seed-long | ||
run: | | ||
make test-sim-multi-seed-long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
name: Sims | ||
on: [pull_request] | ||
jobs: | ||
cleanup-runs: | ||
runs-on: ubuntu-latest | ||
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | ||
steps: | ||
- uses: rokroskar/workflow-run-cleanup-action@master | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
make build | ||
install-runsim: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/setup-go@v2-beta | ||
- name: install runsim | ||
run: | | ||
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
||
test-sim-nondeterminism: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v1 | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
if: "env.GIT_DIFF != ''" | ||
- name: test-sim-nondeterminism | ||
run: | | ||
make test-sim-nondeterminism | ||
if: "env.GIT_DIFF != ''" | ||
|
||
test-sim-import-export: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v1 | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
if: "env.GIT_DIFF != ''" | ||
- name: test-sim-import-export | ||
run: | | ||
make test-sim-import-export | ||
if: "env.GIT_DIFF != ''" | ||
|
||
test-sim-after-import: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v1 | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
if: "env.GIT_DIFF != ''" | ||
- name: test-sim-after-import | ||
run: | | ||
make test-sim-after-import | ||
if: "env.GIT_DIFF != ''" | ||
|
||
test-sim-multi-seed-short: | ||
runs-on: ubuntu-latest | ||
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v1 | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
if: "env.GIT_DIFF != ''" | ||
- name: test-sim-multi-seed-short | ||
run: | | ||
make test-sim-multi-seed-short | ||
if: "env.GIT_DIFF != ''" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Code Coverage | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
cleanup-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: rokroskar/workflow-run-cleanup-action@master | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | ||
|
||
test-coverage-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v2-beta | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v1 | ||
id: git_diff | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
- name: build | ||
run: | | ||
make build | ||
if: "env.GIT_DIFF != ''" | ||
|
||
- name: test & coverage report creation | ||
run: | | ||
go test ./... -mod=readonly -timeout 12m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' | ||
if: "env.GIT_DIFF != ''" | ||
- name: filter out DONTCOVER | ||
run: | | ||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')" | ||
excludelist+=" $(find ./ -type f -name '*.pb.go')" | ||
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')" | ||
for filename in ${excludelist}; do | ||
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g') | ||
echo "Excluding ${filename} from coverage report..." | ||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt | ||
done | ||
if: "env.GIT_DIFF != ''" | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.txt # optional | ||
fail_ci_if_error: true | ||
if: "env.GIT_DIFF != ''" |
Oops, something went wrong.