Skip to content

Commit 5a316b8

Browse files
authored
Merge branch 'main' into block_ser_ledger
2 parents 133acd3 + 29a4988 commit 5a316b8

File tree

43 files changed

+3027
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3027
-502
lines changed

.config/dictionaries/project.dic

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ bootstrapper
2424
BROTLI
2525
cantopen
2626
cardano
27+
carryforward
2728
CBOR
2829
cbork
2930
cdylib
3031
CEST
32+
chacha
3133
CHAINCODE
3234
chainsync
3335
childs
@@ -39,6 +41,7 @@ ciphertexts
3941
codegen
4042
codepoints
4143
coti
44+
coverallsapp
4245
cpus
4346
crontabs
4447
crontagged
@@ -52,6 +55,7 @@ dcbor
5255
decompressor
5356
delegators
5457
dleq
58+
dlog
5559
dockerhub
5660
Dominik
5761
dotenv
@@ -102,6 +106,7 @@ ideascale
102106
idents
103107
IFMT
104108
Intellij
109+
inversed
105110
ioerr
106111
iohk
107112
ipfs

.github/workflows/generate-allure-report.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
if-no-files-found: error
6060
retention-days: 1
6161

62+
- name: Collect and upload test coverage
63+
uses: actions/upload-artifact@v4
64+
if: always()
65+
with:
66+
name: coverage-reports
67+
path: "**/*${{ env.COVERAGE_EXT }}"
68+
if-no-files-found: error
69+
retention-days: 1
70+
6271
generate-allure-report:
6372
name: Generate allure report
6473
runs-on: ubuntu-latest
@@ -106,3 +115,49 @@ jobs:
106115
${{ steps.allure.outputs.test_result_icon }} [Test Report](${{ steps.allure.outputs.report_url }}) | ${\color{lightgreen}Pass: ${{ steps.allure.outputs.test_result_passed }}/${{ steps.allure.outputs.test_result_total }}}$ | ${\color{red}Fail: ${{ steps.allure.outputs.test_result_failed }}/${{ steps.allure.outputs.test_result_total }}}$ |
107116
comment_tag: allure_report
108117
mode: upsert
118+
119+
generate-coverage-report:
120+
name: Generate coverage report
121+
runs-on: ubuntu-latest
122+
needs: [generate-test-reports]
123+
steps:
124+
- uses: actions/checkout@v4
125+
126+
- uses: actions/download-artifact@v4
127+
with:
128+
name: coverage-reports
129+
130+
- name: Collect coverage report
131+
run: |
132+
mkdir -p ${{ env.COVERAGE_REPORT_PATH }}
133+
shopt -s globstar
134+
cp **/*${{ env.COVERAGE_EXT }} ${{ env.COVERAGE_REPORT_PATH }}
135+
ls ${{ env.COVERAGE_REPORT_PATH }}
136+
137+
- name: Normalize coverage report paths
138+
run: |
139+
sed -i -e 's/SF:\/root\/build/SF:rust/g' ${{ env.COVERAGE_REPORT_PATH }}/cat-libs.coverage.info
140+
141+
- name: Coveralls
142+
env:
143+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144+
uses: coverallsapp/github-action@v2
145+
with:
146+
path-to-lcov: "${{ env.COVERAGE_REPORT_PATH }}/cat-libs.coverage.info"
147+
allow-empty: true
148+
debug: true
149+
flag-name: rust-unit-test
150+
base-path: "/home/runner/work/catalyst-libs/catalyst-libs/"
151+
parallel: true
152+
153+
upload-coverage-report:
154+
name: Upload coverage report
155+
needs: [generate-coverage-report]
156+
if: ${{ always() }}
157+
runs-on: ubuntu-latest
158+
steps:
159+
- name: Coveralls Finished
160+
uses: coverallsapp/github-action@v2
161+
with:
162+
parallel-finished: true
163+
carryforward: "rust-unit-test"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title: Catalyst Voting
2+
arrange:
3+
- crypto.md
4+
- transaction.md

0 commit comments

Comments
 (0)