codecov.yml 697 B

123456789101112131415161718192021222324
  1. name: Coverage
  2. on:
  3. push:
  4. branches: ["main"]
  5. pull_request:
  6. jobs:
  7. coverage:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v4
  11. - uses: dtolnay/rust-toolchain@stable
  12. - uses: taiki-e/install-action@v2
  13. with:
  14. tool: cargo-tarpaulin
  15. - run: cargo tarpaulin --out Xml
  16. - uses: codecov/codecov-action@v4
  17. # A codecov token is not needed for public repos if the repo is linked
  18. # on codecov.io. See https://docs.codecov.com/docs/frequently-asked-questions#where-is-the-repository-upload-token-found
  19. - uses: actions/upload-artifact@v4
  20. with:
  21. name: code-coverage-report
  22. path: cobertura.xml