Merge pull request #14 from bacv/ci/codecov

ci: codecov and badges
This commit is contained in:
gusto 2022-12-17 17:53:02 +02:00 committed by GitHub
commit d15e85c545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 3 deletions

36
.github/workflows/codecov.yml vendored Normal file
View File

@ -0,0 +1,36 @@
on:
push:
branches:
- main
name: Codecov
jobs:
test:
name: Test
env:
RUSTFLAGS: -C instrument-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: llvm-tools-preview
- uses: actions-rs/cargo@v1
continue-on-error: true
- run: |
cargo install grcov;
cargo test --all-features;
mkdir /tmp/cov;
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
- uses: codecov/codecov-action@v3
with:
directory: /tmp/cov/
name: overwatch-codecov
fail_ci_if_error: true

View File

@ -3,7 +3,7 @@ on:
tags:
- v*.*.*
name: CI
name: Release
jobs:
release:

View File

@ -1,5 +1,16 @@
# Overwatch
[![MIT licensed][mit-badge]][mit-url]
[![Build Status][actions-badge]][actions-url]
[![Codecov Status][codecov-badge]][codecov-url]
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[mit-url]: https://github.com/logos-co/Overwatch/blob/master/LICENSE
[actions-badge]: https://github.com/logos-co/Overwatch/workflows/CI/badge.svg
[actions-url]: https://github.com/logos-co/Overwatch/actions/workflows/main.yml?query=workflow%3ACI+branch%3Amain
[codecov-badge]: https://codecov.io/github/logos-co/Overwatch/branch/main/graph/badge.svg?token=H4CQWRUCUS
[codecov-url]: https://codecov.io/github/logos-co/Overwatch
Overwatch is a framework to easily construct applications that requires of several independent
parts that needs communication between them.
Everything is self-contained, and it matches somewhat the advantages of microservices.