diff --git a/.github/workflows/migrate-wicked-ci.yml b/.github/workflows/migrate-wicked-ci.yml index 3ece9a0bdd..b04c3fc270 100644 --- a/.github/workflows/migrate-wicked-ci.yml +++ b/.github/workflows/migrate-wicked-ci.yml @@ -19,13 +19,37 @@ jobs: steps: - name: Git Checkout uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose + + - name: Install toolchain + run: rustup toolchain install stable + + - name: Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Install cargo-binstall + uses: taiki-e/install-action@v2 + with: + tool: cargo-binstall + + - name: Install tarpaulin + run: cargo-binstall --no-confirm cargo-tarpaulin + - name: Unit tests - run: cargo test --verbose + run: cargo tarpaulin --color always -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