-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to CI/CD build try-runtime error
Signed-off-by: R.Rajeshkumar <[email protected]>
- Loading branch information
R.Rajeshkumar
committed
Jul 13, 2022
1 parent
bc93fd8
commit 21aefb4
Showing
1 changed file
with
60 additions
and
57 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
env: | ||
nightly: nightly | ||
target: wasm32-unknown-unknown | ||
tarpaulin-vers: '0.20.0' | ||
tarpaulin-vers: "0.20.0" | ||
try-runtime-chain: dev | ||
try-runtime-uri: wss://nodle-parachain.api.onfinality.io:443/public-ws | ||
|
||
|
@@ -18,62 +18,63 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.nightly }} | ||
override: true | ||
target: ${{ env.target }} | ||
components: rustfmt,clippy | ||
|
||
- name: Cache cargo registry | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-index- | ||
- name: Cache cargo build | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build-target- | ||
- name: Fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: ${{ env.nightly }} | ||
command: fmt | ||
|
||
- name: Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code | ||
toolchain: ${{ env.nightly }} | ||
|
||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: ${{ env.tarpaulin-vers }} | ||
args: '--avoid-cfg-tarpaulin --all-features --workspace --timeout 120 --exclude runtimes-eden runtimes-main runtimes-staking nodle-chain nodle-parachain nodle-staking --exclude-files **/mock.rs **/weights.rs **/weights/*' | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: true | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.nightly }} | ||
override: true | ||
target: ${{ env.target }} | ||
components: rustfmt,clippy | ||
|
||
- name: Cache cargo registry | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-index- | ||
- name: Cache cargo build | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build-target- | ||
- name: Fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: ${{ env.nightly }} | ||
command: fmt | ||
|
||
- name: Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code | ||
toolchain: ${{ env.nightly }} | ||
|
||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: ${{ env.tarpaulin-vers }} | ||
args: "--avoid-cfg-tarpaulin --all-features --workspace --timeout 120 --exclude runtimes-eden runtimes-main runtimes-staking nodle-chain nodle-parachain nodle-staking --exclude-files **/mock.rs **/weights.rs **/weights/*" | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: true | ||
|
||
|
||
try-runtime: | ||
runs-on: ubuntu-latest | ||
|
@@ -85,13 +86,15 @@ jobs: | |
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: ${{ env.target }} | ||
|
||
- name: Install Rust nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.nightly }} | ||
target: ${{ env.target }} | ||
default: true | ||
|
||
- name: Try Runtime | ||
uses: actions-rs/cargo@v1 | ||
|