name: Coverage # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: push: branches: [ main ] pull_request: branches: [ main ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: tarpaulin: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - name: Install cargo-tarpaulin run: cargo install cargo-tarpaulin - name: Install request-key for Request/Instantiate flow run: | cargo build --example request-key --features std sudo mv ./target/debug/examples/request-key /sbin/request-key - name: Run cargo-tarpaulin run: cargo-tarpaulin --lib -- --include-ignored - name: Upload to codecov.io uses: codecov/codecov-action@v5 with: file: ./cobertura.xml