Skip to content

Add Coveralls to rust ci #10

Add Coveralls to rust ci

Add Coveralls to rust ci #10

name: "migrate-wicked CI"
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
rust_ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./rust/agama-migrate-wicked
strategy:
fail-fast: false
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
args: '-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