From 5323c7d96faed4171bbd2d7bfe398159e5b3067c Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 23 Oct 2022 20:45:25 +0200 Subject: ci: add code test coverage job --- .circleci/config.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9637cdf..8947236 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,11 +10,30 @@ jobs: - run: rustup install nightly - run: rustup default nightly - run: - name: Run Tests - command: cargo test --workspace --all-features + name: Run Tests + command: cargo test --workspace --all-features + coverage: + machine: true + steps: + - checkout + - run: + name: Coverage with docker + command: | + docker run \ + --security-opt seccomp=unconfined \ + -v "${PWD}:/volume" \ + xd009642/tarpaulin:0.22.0-nightly \ + cargo \ + +nightly \ + tarpaulin \ + --workspace \ + --all-features \ + --ciserver circle-ci \ + --coveralls $COVERALLS_REPO_TOKEN workflows: test: jobs: - test-all + - coverage -- cgit v1.2.3-18-g5258