From 9679db6ddc0097bcabfa7951b479439c3219fdbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 8 Dec 2020 14:05:25 +0100 Subject: [PATCH] CI: Enable code coverage again. --- .github/workflows/coverage.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..5b0f562d --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,36 @@ +name: Code coverage + +on: + push: + +env: + CARGO_TERM_COLOR: always + +jobs: + code_coverage: + name: Code Coverage + runs-on: "ubuntu-latest" + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + 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