From b5b2384ac7f0fce9b720125004bfbedad7db0ee8 Mon Sep 17 00:00:00 2001 From: Jorik Cronenberg Date: Thu, 19 Oct 2023 12:38:37 +0200 Subject: [PATCH] Add Coveralls to rust ci --- .github/workflows/migrate-wicked-ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/migrate-wicked-ci.yml b/.github/workflows/migrate-wicked-ci.yml index 3ece9a0bdd..654216ad8a 100644 --- a/.github/workflows/migrate-wicked-ci.yml +++ b/.github/workflows/migrate-wicked-ci.yml @@ -19,13 +19,29 @@ jobs: steps: - name: Git Checkout uses: actions/checkout@v3 + - name: Build - run: cargo build --verbose + run: cargo build + + - name: Install tarpaulin + run: cargo install cargo-tarpaulin + - name: Unit tests - run: cargo test --verbose + run: cargo tarpaulin -p agama-migrate-wicked --skip-clean --exclude-files "agama-locale-data/*" --exclude-files "agama-lib/*" --exclude-files "agama-settings/*" --exclude-files "agama-dbus-server/*" --exclude-files "agama-cli/*" --out xml + - name: Lint tests run: cargo fmt --all -- --check + - name: Cargo clippy run: cargo clippy -p agama-migrate-wicked -- --no-deps -D warnings + - name: Cargo clippy on unit tests run: cargo clippy -p agama-migrate-wicked -- --no-deps --cfg test -A unused_imports -D warnings + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v2 + with: + base-path: ./rust + format: cobertura + flag-name: rust-backend + parallel: true