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 b5b2384
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/migrate-wicked-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5b2384

Please sign in to comment.