Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/coverage-protocols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ jobs:
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:
Expand Down Expand Up @@ -101,14 +117,6 @@ jobs:
flags: parsers_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload roles_logic_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./target/tarpaulin-reports/roles-logic-sv2-coverage
file: ./target/tarpaulin-reports/roles-logic-sv2-coverage/cobertura.xml
flags: roles_logic_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload v1-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion scripts/coverage-protocols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ crates=(
"sv1"
"sv2/binary-sv2/derive_codec"
"sv2/binary-sv2"
"sv2/buffer-sv2"
"sv2/channels-sv2"
"sv2/noise-sv2"
"sv2/framing-sv2"
Expand All @@ -21,9 +22,9 @@ crates=(
"sv2/subprotocols/template-distribution"
"sv2/subprotocols/mining"
"sv2/subprotocols/job-declaration"
"sv2/roles-logic-sv2"
"sv2/parsers-sv2"
"sv2/handlers-sv2"
"stratum-core/stratum-translation"
)

for crate in "${crates[@]}"; do
Expand Down
Loading