Skip to content

Commit

Permalink
WIP feat(ci): add code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Sep 27, 2024
1 parent 7f90eda commit f9dc799
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,28 @@ jobs:
- uses: crate-ci/typos@v1.24.1
with:
files: .

coverage:
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
runs-on: ubuntu-latest
env:
BEERUS_TEST_RUN: 1
BEERUS_TEST_STARKNET_URL: https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0_7/${{ secrets.ALCHEMY_KEY }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: rm -rf /opt/hostedtoolcache
- name: View context attributes
uses: actions/github-script@v7
with:
script: console.log(context)
- name: Install Tarpaulin for code coverage
run: cargo install cargo-tarpaulin
- name: Run tests with coverage
run: cargo clean && cargo tarpaulin --engine llvm --out Html
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./tarpaulin-report.html
#token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f9dc799

Please sign in to comment.