Add Async OHTTP client #907
Workflow file for this run
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: Code Coverage | |
| on: | |
| push: | |
| pull_request: | |
| permissions: {} | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| code-coverage: | |
| name: Code Coverage | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: "-Cinstrument-coverage" | |
| RUSTDOCFLAGS: "-Cinstrument-coverage" | |
| LLVM_PROFILE_FILE: "report-%p-%m.profraw" | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install lcov Tools | |
| run: sudo apt-get install lcov -y | |
| - name: Install rustup | |
| run: curl https://sh.rustup.rs -sSf | sh -s -- -y | |
| - name: Set Default Toolchain | |
| run: rustup default nightly | |
| - name: Set Minimal Profile | |
| run: rustup set profile minimal | |
| - name: Add llvm Tools | |
| run: rustup component add llvm-tools-preview | |
| - name: Update Toolchain | |
| run: rustup update | |
| - name: Setup cargo Cache | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install grcov | |
| run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi | |
| - name: Run Tests | |
| run: cargo test -- --test-threads=1 | |
| - name: Run grcov | |
| run: mkdir coverage; grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '/*' -o ./coverage/lcov.info | |
| - name: Generate HTML Coverage Report | |
| run: genhtml -o coverage-report.html ./coverage/lcov.info | |
| - name: Coveralls Upload | |
| uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: coverage-report | |
| path: coverage-report.html |