Merge pull request #317 from Shourya742/2026-03-04-remove-broadcast #191
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 Analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| coverage: | |
| name: Generate Test Coverage | |
| runs-on: ubuntu-latest | |
| container: | |
| image: xd009642/tarpaulin:develop-nightly | |
| options: --security-opt seccomp=unconfined | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install capnp dependencies | |
| run: apt-get update && apt-get install -y capnproto libcapnp-dev | |
| - name: Generate code coverage | |
| run: | | |
| ./scripts/coverage.sh | |
| - name: List generated coverage files | |
| run: | | |
| echo "Checking for generated coverage files..." | |
| find . -name "cobertura.xml" -type f || echo "No cobertura.xml files found" | |
| echo "" | |
| echo "Directory structure of tarpaulin-reports:" | |
| find . -path "*/target/tarpaulin-reports/*" -type f || echo "No tarpaulin-reports found" | |
| if: always() | |
| - name: Upload stratum-apps coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./stratum-apps/target/tarpaulin-reports/stratum-apps-coverage | |
| file: ./stratum-apps/target/tarpaulin-reports/stratum-apps-coverage/cobertura.xml | |
| flags: stratum_apps | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| continue-on-error: true | |
| - name: Upload pool apps coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./pool-apps/target/tarpaulin-reports/pool-apps-coverage | |
| file: ./pool-apps/target/tarpaulin-reports/pool-apps-coverage/cobertura.xml | |
| flags: pool_apps | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| continue-on-error: true | |
| - name: Upload miner apps coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./miner-apps/target/tarpaulin-reports/miner-apps-coverage | |
| file: ./miner-apps/target/tarpaulin-reports/miner-apps-coverage/cobertura.xml | |
| flags: miner_apps | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| continue-on-error: true | |
| - name: Upload bitcoin-core-sv2 coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./bitcoin-core-sv2/target/tarpaulin-reports/bitcoin-core-sv2-coverage | |
| file: ./bitcoin-core-sv2/target/tarpaulin-reports/bitcoin-core-sv2-coverage/cobertura.xml | |
| flags: bitcoin_core_sv2 | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| continue-on-error: true | |
| - name: Archive coverage reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-reports | |
| path: | | |
| stratum-apps/target/tarpaulin-reports/ | |
| pool-apps/target/tarpaulin-reports/ | |
| miner-apps/target/tarpaulin-reports/ | |
| if: always() |