Skip to content

Coverage: Move ownership of channel sender to producer thread #390

Coverage: Move ownership of channel sender to producer thread

Coverage: Move ownership of channel sender to producer thread #390

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: {}
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Execute unit and integration tests
runs-on: ubuntu-latest
permissions: {}
env:
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- name: Set up shared compilation cache
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust LLVM tools preview
run: rustup component add llvm-tools-preview
- name: Install Rust coverage tool
uses: taiki-e/install-action@94a7388bec5d4c8dd93e3ebf09e0ff448f3f6f4d # v2.68.35
with:
tool: cargo-llvm-cov
- name: Fetch Rust dependencies
run: cargo fetch --locked
- name: Check formatting
run: cargo fmt --check
- name: Build
run: cargo build --locked
- name: Run tests
run: |
cargo llvm-cov test --cobertura --locked --verbose --output-path cobertura.xml
- name: Look for common mistakes
run: cargo clippy --locked
- name: Upload test coverage to Coveralls
with:
fail-on-error: false # not critical when coveralls.io is down
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6