2020-12-08 13:05:25 +00:00
|
|
|
name: Code coverage
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-08 13:30:49 +00:00
|
|
|
branches: [ master ]
|
2020-12-08 13:05:25 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
code_coverage:
|
2020-12-08 13:09:51 +00:00
|
|
|
name: Code Coverage
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
2020-12-08 13:05:25 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install stable toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
2020-12-08 13:09:51 +00:00
|
|
|
profile: minimal
|
2020-12-08 13:05:25 +00:00
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Install tarpaulin
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: install
|
|
|
|
args: cargo-tarpaulin -f
|
|
|
|
|
|
|
|
- name: Run tarpaulin
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: tarpaulin
|
|
|
|
args: --ignore-config --exclude-files "matrix_sdk/examples/*,matrix_sdk_common,matrix_sdk_test" --out Xml
|
|
|
|
|
|
|
|
- name: Upload to codecov.io
|
|
|
|
uses: codecov/codecov-action@v1
|