Skip to content

Commit

Permalink
ci: Collect Code Coverage (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Mar 1, 2021
1 parent b0cc9e8 commit 1238501
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .codecov.yml
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
informational: true
patch: false

comment:
layout: "diff"
require_changes: true
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -123,3 +123,28 @@ jobs:
- run: make checkfast

- run: make testfast

codecov:
name: Code Coverage
runs-on: ubuntu-latest
continue-on-error: true # well, its nightly and highly experimental

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: llvm-tools-preview
override: true

- uses: Swatinem/rust-cache@v1

- uses: Swatinem/fucov@v1
with:
args: --workspace --all-features

- uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649
with:
directory: coverage
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -8,6 +8,7 @@
# Sentry SDK for Rust

[![Build Status](https://travis-ci.com/getsentry/sentry-rust.svg?branch=master)](https://travis-ci.com/getsentry/sentry-rust)
[![codecov](https://codecov.io/gh/getsentry/sentry-rust/branch/master/graph/badge.svg?token=x4RzFE8N6t)](https://codecov.io/gh/getsentry/sentry-rust)

This workspace contains various crates that provide support for logging events and errors / panics to the
[Sentry](https://sentry.io/) error logging service.
Expand Down

0 comments on commit 1238501

Please sign in to comment.