dyns 0.7.2

DNS discovery and resolver support for DHTTP applications
Documentation
name: Coverage

on:
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]

jobs:
  coverage:
    if: ${{ !endsWith(github.head_ref, '-dhttp-identity') && !endsWith(github.ref_name, '-dhttp-identity') }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - name: Install PAM development libraries
        run: |
          sudo apt-get update
          sudo apt-get install --assume-yes --no-install-recommends libpam0g-dev
      - uses: taiki-e/install-action@cargo-llvm-cov
      # Limit test parallelism to 1 thread to avoid resource contention
      - run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info -- --test-threads=1

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v5
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: lcov.info
          fail_ci_if_error: true