perf: optimize enforcement and role-link hot paths #559
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: | |
| - master | |
| jobs: | |
| cover: | |
| name: Auto Codecov Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| run: | | |
| rustup toolchain install stable --profile minimal | |
| rustup default stable | |
| - name: Cache cargo-tarpaulin | |
| id: cache-tarpaulin | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/bin/cargo-tarpaulin | |
| key: ${{ runner.os }}-cargo-tarpaulin | |
| - name: Install cargo-tarpaulin | |
| if: steps.cache-tarpaulin.outputs.cache-hit != 'true' | |
| run: cargo install cargo-tarpaulin --locked | |
| - name: Run cargo-tarpaulin | |
| run: | | |
| cargo tarpaulin --no-default-features --features runtime-async-std,cached,glob,ip,watcher,logging,incremental,explain | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} |