feat(library-config)!: caller-supplied threadlocal schema and extra process-context attributes #11452
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Coverage | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 6 * * *' | |
| jobs: | |
| coverage: | |
| runs-on: | |
| labels: ubuntu-latest-16-cores | |
| group: APM Larger Runners | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| steps: | |
| - name: Free Disk Space | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
| with: | |
| tool-cache: false | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: true | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | |
| with: | |
| submodules: recursive | |
| - name: Read nightly version from nightly-toolchain.toml | |
| id: nightly-version | |
| run: echo "version=$(grep -Po '^channel = "\K[^"]+' nightly-toolchain.toml)" >> $GITHUB_OUTPUT | |
| - name: Install Rust | |
| run: | | |
| rustup set profile minimal | |
| rustup install ${{ steps.nightly-version.outputs.version }} | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # 2.49.27 | |
| with: | |
| tool: cargo-llvm-cov@0.6.13,nextest@0.9.96 | |
| - name: Cache [rust] | |
| uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1 | |
| with: | |
| cache-targets: true # cache build artifacts | |
| cache-bin: true # cache the ~/.cargo/bin directory | |
| - name: Generate code coverage (including doc tests) | |
| env: | |
| # Override rust-toolchain.toml so cargo-llvm-cov runs on the dated | |
| # nightly (doc-test coverage needs nightly) instead of the workspace MSRV. | |
| RUSTUP_TOOLCHAIN: ${{ steps.nightly-version.outputs.version }} | |
| run: | | |
| cargo llvm-cov --all-features --workspace --no-report nextest --no-tests=pass | |
| cargo llvm-cov --all-features --workspace --no-report --doc | |
| cargo llvm-cov report --doctests --lcov --output-path lcov.info | |
| - name: Upload coverage to Datadog | |
| if: always() | |
| continue-on-error: true | |
| uses: DataDog/coverage-upload-github-action@d2cf302a39c05e0ad22063360a2bf6ce0cc4906c # v1 | |
| with: | |
| api_key: ${{ secrets.DATADOG_API_KEY }} | |
| files: lcov.info | |
| format: lcov |