Skip to content

Commit

Permalink
ci: configure codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Jun 18, 2024
1 parent ebf8ad3 commit b278c87
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/soroban-codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Soroban contracts Codecov

on:
pull_request:
branches:
- "**"
push:
branches:
- main

jobs:
code-coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
run: rustup update stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info --package cw-xcall
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
flags: rust
fail_ci_if_error: true

0 comments on commit b278c87

Please sign in to comment.