-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve framework coverage v2 (#489)
* update whitelist tests and fixes * upgrade account test * ans host full filter test * ans-host coverage * aftermerge fixes * abstract sdk codecov progress * update snapshots * protobuf unused dep * change code coverage tool * download correct binary * tarpaulin misses branches * try nightly coverage * circlecli orb typo * no coverage feature * AbstractApi update * update module id for MockBinding * splitter tests * AccountVerification & AccountRegistry tests * nits * exclude error files * version registry tests * move interchain mock tests to framework * abstract app extra tests * migrate instantiate test * standalone cover tests * add comment on _update_whitelisted_modules * typo * verify nft test * remove lcov * no interchain mock tests anymore * clippy * cargo update * fix namespace key and add migration * update workspace hack * snapshots * postmerge fixes * get_account->account * account getter fmt * apply coverage helper for all unit tests * feature coverage attribute --------- Co-authored-by: Kayanski <[email protected]>
- Loading branch information
1 parent
2297ea2
commit 6d9cebe
Showing
188 changed files
with
2,510 additions
and
1,830 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,15 @@ orbs: | |
codecov: codecov/[email protected] | ||
discord: antonioned/[email protected] | ||
|
||
commands: | ||
rust_install_nightly: | ||
steps: | ||
- run: | ||
name: "Install nightly toolchain" | ||
command: | | ||
rustup toolchain install nightly-x86_64-unknown-linux-gnu | ||
rustup component add llvm-tools-preview | ||
parameters: | ||
GHA_Event: | ||
type: string | ||
|
@@ -368,6 +377,7 @@ jobs: | |
- image: cimg/rust:1.80.0 | ||
resource_class: xlarge | ||
steps: | ||
- rust_install_nightly | ||
- setup_remote_docker | ||
- checkout | ||
- run: | ||
|
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 |
---|---|---|
|
@@ -49,46 +49,15 @@ jobs: | |
mkdir -p ~/.cw-orchestrator | ||
echo -n '${{ secrets.CW_ORCH_NETWORKS }}' > ~/.cw-orchestrator/networks.toml | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "interchain/framework-clone-testing -> target" | ||
with: | ||
workspaces: "interchain/framework-clone-testing -> target" | ||
- name: cargo test --locked | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
working-directory: ./interchain/framework-clone-testing | ||
run: cargo nextest run --retries 3 | ||
|
||
interchain-tests: | ||
runs-on: ubuntu-latest | ||
name: interchain mock tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.SSH_PRIVATE_KEY_MULTI_TEST }} | ||
${{ secrets.SSH_PRIVATE_KEY_CW_ORCH_INTERCHAIN }} | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
with: | ||
version: "v0.8.1" | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- name: cargo generate-lockfile | ||
if: hashFiles('Cargo.lock') == '' | ||
working-directory: ./interchain/interchain-tests | ||
run: cargo generate-lockfile | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "interchain/interchain-tests -> target" | ||
- name: cargo test --locked | ||
working-directory: ./interchain/interchain-tests | ||
run: cargo test --locked | ||
|
||
modules-clone-tests: | ||
runs-on: ubuntu-latest | ||
name: module clone tests | ||
|
@@ -119,8 +88,8 @@ jobs: | |
mkdir -p ~/.cw-orchestrator | ||
echo -n '${{ secrets.CW_ORCH_NETWORKS }}' > ~/.cw-orchestrator/networks.toml | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "interchain/modules-clone-testing -> target" | ||
with: | ||
workspaces: "interchain/modules-clone-testing -> target" | ||
- name: cargo test --locked | ||
working-directory: ./interchain/modules-clone-testing | ||
run: cargo nextest run --retries 3 | ||
run: cargo nextest run --retries 3 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.