Skip to content

Update polkadot v1.0.0 #3351

Update polkadot v1.0.0

Update polkadot v1.0.0 #3351

Workflow file for this run

name: Tests Coverage
on:
workflow_dispatch:
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'
push:
branches:
- master
paths-ignore:
- '**/README.md'
env:
TARPAULIN_VERSION: 0.19.1
# LIBCLANG_PATH: "/usr/lib/llvm-11/lib" # default `llvm-config --prefix`
CARGO_INCREMENTAL: 0
jobs:
clean-up-actions:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
test:
name: Coverage Report
runs-on: [self-hosted, linux]
needs: clean-up-actions
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-04-15
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Run cargo-tarpaulin
run: |
wget https://github.com/xd009642/tarpaulin/releases/download/${{ env.TARPAULIN_VERSION }}/cargo-tarpaulin-${{ env.TARPAULIN_VERSION }}-travis.tar.gz
tar -zxvf cargo-tarpaulin-${{ env.TARPAULIN_VERSION }}-travis.tar.gz -C $HOME/.cargo/bin
cargo tarpaulin -v --no-fail-fast --workspace \
-e acala-inspect \
acala acala-cli e2e-tests acala-service \
acala-primitives \
acala-rpc \
acala-runtime runtime-common runtime-integration-tests karura-runtime mandala-runtime \
test-service \
--exclude-files **/mock.rs **/weights.rs **/weights/*
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)