Skip to content

Commit

Permalink
Add Coveralls to rust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jcronenberg committed Oct 19, 2023
1 parent 2436f87 commit 758c8cb
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/migrate-wicked-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 758c8cb

Please sign in to comment.