Add code coverage using coveralls and tarpaulin
This commit is contained in:
parent
e0b8bddc60
commit
cbb24549d2
|
@ -31,7 +31,7 @@ jobs:
|
||||||
npm run start &
|
npm run start &
|
||||||
working-directory: ./server
|
working-directory: ./server
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Build
|
- name: Build, Test and Publish Coverage
|
||||||
run: cargo build --verbose
|
run: |
|
||||||
- name: Run tests
|
cargo install cargo-tarpaulin
|
||||||
run: cargo test --verbose
|
cargo tarpaulin --all-features --verbose --skip-clean --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }} --timeout 120
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
[![Discord]][Discord-invite]
|
[![Discord]][Discord-invite]
|
||||||
[![Build][build-shield]][build-url]
|
[![Build][build-shield]][build-url]
|
||||||
|
[![Coverage][coverage-shield]][coverage-url]
|
||||||
[![Contributors][contributors-shield]][contributors-url]
|
[![Contributors][contributors-shield]][contributors-url]
|
||||||
[![Forks][forks-shield]][forks-url]
|
[![Forks][forks-shield]][forks-url]
|
||||||
[![Issues][issues-shield]][issues-url]
|
[![Issues][issues-shield]][issues-url]
|
||||||
|
@ -124,6 +125,8 @@ accepted, if it violates these guidelines or [our Code of Conduct](https://githu
|
||||||
[clippy-url]: https://github.com/polyphony-chat/chorus/blob/main/.github/workflows/clippy.yml
|
[clippy-url]: https://github.com/polyphony-chat/chorus/blob/main/.github/workflows/clippy.yml
|
||||||
[contributors-shield]: https://img.shields.io/github/contributors/polyphony-chat/chorus.svg?style=flat
|
[contributors-shield]: https://img.shields.io/github/contributors/polyphony-chat/chorus.svg?style=flat
|
||||||
[contributors-url]: https://github.com/polyphony-chat/chorus/graphs/contributors
|
[contributors-url]: https://github.com/polyphony-chat/chorus/graphs/contributors
|
||||||
|
[coverage-shield]: https://coveralls.io/repos/github/polyphony-chat/chorus/badge.svg?branch=main
|
||||||
|
[coverage-url]: https://coveralls.io/github/polyphony-chat/chorus?branch=main
|
||||||
[forks-shield]: https://img.shields.io/github/forks/polyphony-chat/chorus.svg?style=flat
|
[forks-shield]: https://img.shields.io/github/forks/polyphony-chat/chorus.svg?style=flat
|
||||||
[forks-url]: https://github.com/polyphony-chat/chorus/network/members
|
[forks-url]: https://github.com/polyphony-chat/chorus/network/members
|
||||||
[stars-shield]: https://img.shields.io/github/stars/polyphony-chat/chorus.svg?style=flat
|
[stars-shield]: https://img.shields.io/github/stars/polyphony-chat/chorus.svg?style=flat
|
||||||
|
|
Loading…
Reference in New Issue