Skip to content

Commit

Permalink
Fix to CI/CD build try-runtime error
Browse files Browse the repository at this point in the history
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.
117 changes: 60 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 21aefb4

Please sign in to comment.