fix the remote of the ibc query status #943
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
name: ci-okbchain-ut | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
app: | |
name: app ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Run Test okbchain/app | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./app/..." | |
go list ${codePath} |xargs go test -mod=readonly -timeout 8m -coverprofile=coverage.data -covermode=atomic | |
continue-on-error: true | |
- name: Run Test okbchain/app Retry on error | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./app/..." | |
go list ${codePath} |xargs go test -mod=readonly -timeout 8m -coverprofile=coverage.data -covermode=atomic | |
- name: Upload code coverage | |
run: | | |
set -ex | |
echo "mode: atomic" > coverage.txt | |
tail -n +2 coverage.data >> coverage.txt | |
bash <(curl -s https://codecov.io/bash) -f coverage.txt | |
x: | |
name: x ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Run Test okbchain/x | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./x/..." | |
go list ${codePath} |xargs go test -mod=readonly -timeout 8m -coverprofile=coverage.data -covermode=atomic | |
continue-on-error: true | |
- name: Run Test okbchain/x Retry | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./x/..." | |
go list ${codePath} |xargs go test -mod=readonly -timeout 8m -coverprofile=coverage.data -covermode=atomic | |
- name: Upload code coverage | |
run: | | |
set -ex | |
echo "mode: atomic" > coverage.txt | |
tail -n +2 coverage.data >> coverage.txt | |
bash <(curl -s https://codecov.io/bash) -f coverage.txt | |
libstm: | |
name: libs tm ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Go Test okbchain/libs/tm | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./libs/tendermint/..." | |
go list ${codePath} |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/tm retry | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/tendermint/..." | |
go list ${codePath} |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
- name: Go Test okbchain/libs/ibc-go/testing | |
id: ibc-first-attempt | |
run: | | |
set -ex | |
codePath="./libs/ibc-go/..." | |
go list ${codePath} | grep -w "testing" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/ibc-go/testing retry | |
id: ibc-second-attempt | |
if: steps.ibc-first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/ibc-go/..." | |
go list ${codePath} | grep -w "testing" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
libsibc: | |
name: libs ibc ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Go Test okbchain/libs/ibc-go | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./libs/ibc-go/..." | |
go list ${codePath} | grep -vw "testing" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/ibc-go retry | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/ibc-go/..." | |
go list ${codePath} | grep -vw "testing" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
libscosmos: | |
name: libs cosmos ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Go Test okbchain/libs/cosmos-sdk/x | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./libs/cosmos-sdk/..." | |
go list ${codePath} | grep -w "x" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/cosmos-sdk/x retry | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/cosmos-sdk/..." | |
go list ${codePath} | grep -w "x" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
libsother: | |
name: libs other ut | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Go Test okbchain/libs/other | |
id: first-attempt | |
run: | | |
set -ex | |
codePath="./libs/..." | |
go list ${codePath} | grep -vw "cosmos-sdk" | grep -vw "ibc-go" | grep -vw "tendermint" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/other retry | |
id: second-attempt | |
if: steps.first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/..." | |
go list ${codePath} | grep -vw "cosmos-sdk" | grep -vw "ibc-go" | grep -vw "tendermint" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
- name: Go Test okbchain/libs/cosmos-sdk/other | |
id: x-first-attempt | |
run: | | |
set -ex | |
codePath="./libs/cosmos-sdk/..." | |
go list ${codePath} | grep -wv "x" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' | |
continue-on-error: true | |
- name: Go Test okbchain/libs/cosmos-sdk/other retry | |
id: x-second-attempt | |
if: steps.x-first-attempt.outcome != 'success' | |
run: | | |
set -ex | |
codePath="./libs/cosmos-sdk/..." | |
go list ${codePath} | grep -wv "x" |xargs go test -timeout 10m -tags='norace ledger test_ledger_mock' |