mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-17 16:55:16 +00:00
15103ee887
- Adds default feature `bloom`. - It enables a new BloomTokenLog implementation of TokenLog. - It enables a dependency on the `fastbloom` crate.
38 lines
1.5 KiB
YAML
38 lines
1.5 KiB
YAML
name: Coverage
|
|
|
|
on:
|
|
push:
|
|
branches: ['main', '0.8.x']
|
|
|
|
jobs:
|
|
coverage:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: taiki-e/install-action@cargo-llvm-cov
|
|
- shell: bash
|
|
# Run llvm-cov _without_ the "aws-lc-rs-fips" or "rustls-aws-lc-rs-fips" features, since
|
|
# they have complex build requirements:
|
|
# https://github.com/aws/aws-lc/blob/3263ce2a553e4e917217fb487f8c6f488fcb1866/BUILDING.md#build-prerequisites
|
|
#
|
|
# This list of features was determined using:
|
|
# cargo metadata --format-version 1 --no-deps \
|
|
# | jq -r ' .packages[].features | keys[]' \
|
|
# | sort -u \
|
|
# | grep -vFx -e 'default' -e 'aws-lc-rs-fips' -e 'rustls-aws-lc-rs-fips' \
|
|
# | paste -sd ',' -
|
|
run: |
|
|
cargo llvm-cov \
|
|
--features="arbitrary,async-io,async-std,aws-lc-rs,bloom,direct-log,fast-apple-datapath,futures-io,json-output,lock_tracking,log,platform-verifier,ring,runtime-async-std,runtime-smol,runtime-tokio,rustls,rustls-aws-lc-rs,rustls-log,rustls-ring,serde,serde_json,smol,tracing" \
|
|
--workspace --lcov --output-path lcov.info
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: lcov.info
|
|
fail_ci_if_error: true
|