Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat: tce client additional tests #1668

feat: tce client additional tests

feat: tce client additional tests #1668

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
paths: crates/**
pull_request:
branches: [main]
paths: crates/**
workflow_dispatch:
jobs:
codecov:
name: Code coverage
runs-on: ubuntu-latest-16-core
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-rust
with:
components: llvm-tools-preview
tools: grcov,nextest,protoc
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY}}
- name: Build
env:
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"
run: cargo build --all
- name: Run tests
env:
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "codecov-instrumentation-%p-%m.profraw"
run: cargo nextest run --workspace --exclude topos-sequencer-subnet-runtime
- name: Run grcov
run: grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v3