Nft transfer poc #10
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: 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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Coverage Report | |
runs-on: [self-hosted] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: nightly-2023-04-15 | |
components: rustfmt | |
target: wasm32-unknown-unknown | |
- name: Generate code coverage | |
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 | |
make Cargo.toml | |
cargo tarpaulin --verbose --no-fail-fast --workspace --timeout 300 --out Xml | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |