Merge pull request #2085 from Shourya742/2026-02-15-add-prop-test-to-… #1
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: Protocol test Coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| protocols-coverage: | |
| name: tarpaulin Test | |
| runs-on: ubuntu-latest | |
| container: | |
| image: xd009642/tarpaulin:0.27.1-nightly | |
| options: --security-opt seccomp=unconfined | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Generate code coverage | |
| run: | | |
| ./scripts/coverage-protocols.sh | |
| - name: Upload protocols coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports | |
| file: ./target/tarpaulin-reports/cobertura.xml | |
| flags: protocols | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload stratum_translation-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/stratum_translation-coverage | |
| file: ./target/tarpaulin-reports/stratum-translation-coverage/cobertura.xml | |
| flags: stratum_translation-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload buffer_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/buffer_sv2-coverage | |
| file: ./target/tarpaulin-reports/buffer-sv2-coverage/cobertura.xml | |
| flags: buffer_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload binary_codec_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/codec-coverage | |
| file: ./target/tarpaulin-reports/codec-coverage/cobertura.xml | |
| flags: binary_codec_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload binary_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/binary-sv2-coverage | |
| file: ./target/tarpaulin-reports/binary-sv2-coverage/cobertura.xml | |
| flags: binary_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload codec_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/codec-sv2-coverage | |
| file: ./target/tarpaulin-reports/codec-sv2-coverage/cobertura.xml | |
| flags: codec_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload channels_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/channels-sv2-coverage | |
| file: ./target/tarpaulin-reports/channels-sv2-coverage/cobertura.xml | |
| flags: channels_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload common_messages_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/common-messages-coverage | |
| file: ./target/tarpaulin-reports/common-messages-coverage/cobertura.xml | |
| flags: common_messages_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload framing_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/framing-sv2-coverage | |
| file: ./target/tarpaulin-reports/framing-sv2-coverage/cobertura.xml | |
| flags: framing_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload job_declaration_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/job-declaration-coverage | |
| file: ./target/tarpaulin-reports/job-declaration-coverage/cobertura.xml | |
| flags: job_declaration_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload noise_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/noise-sv2-coverage | |
| file: ./target/tarpaulin-reports/noise-sv2-coverage/cobertura.xml | |
| flags: noise_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload parsers_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/parsers-sv2-coverage | |
| file: ./target/tarpaulin-reports/parsers-sv2-coverage/cobertura.xml | |
| flags: parsers_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload v1-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/v1-coverage | |
| file: ./target/tarpaulin-reports/v1-coverage/cobertura.xml | |
| flags: v1-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload template_distribution_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/template-distribution-coverage | |
| file: ./target/tarpaulin-reports/template-distribution-coverage/cobertura.xml | |
| flags: template_distribution_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload mining-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/mining-coverage | |
| file: ./target/tarpaulin-reports/mining-coverage/cobertura.xml | |
| flags: mining-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload handlers_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/handlers-sv2-coverage | |
| file: ./target/tarpaulin-reports/handlers-sv2-coverage/cobertura.xml | |
| flags: handler_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload extensions_sv2-coverage to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./target/tarpaulin-reports/extensions-sv2-coverage | |
| file: ./target/tarpaulin-reports/extensions-sv2-coverage/cobertura.xml | |
| flags: extensions_sv2-coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} |