Skip to content

Commit dccafa6

Browse files
committed
update ci labels and rewrite the README.md
Signed-off-by: Deggen <d.kellenschwiler@bsvassociation.org>
1 parent 4ec380d commit dccafa6

6 files changed

Lines changed: 273 additions & 141 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
913
jobs:
1014
build-and-test:
1115
runs-on: ubuntu-latest
@@ -16,6 +20,8 @@ jobs:
1620

1721
steps:
1822
- uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
1925

2026
- uses: pnpm/action-setup@v6
2127

@@ -43,6 +49,28 @@ jobs:
4349
# Exclude: workspace root (delegating script) and example-paymail (example package, not production)
4450
run: pnpm -r --filter '!@bsv/ts-stack' --filter '!example-paymail' run test
4551

52+
- name: Generate SDK coverage
53+
run: |
54+
pnpm --filter @bsv/sdk run test:coverage
55+
node scripts/normalize-lcov-paths.mjs packages/sdk/coverage/lcov.info packages/sdk
56+
57+
- name: Upload SDK coverage to Codecov
58+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
59+
uses: codecov/codecov-action@v5
60+
with:
61+
token: ${{ secrets.CODECOV_TOKEN }}
62+
files: packages/sdk/coverage/lcov.info
63+
flags: sdk
64+
name: ts-stack-sdk
65+
slug: bsv-blockchain/ts-stack
66+
fail_ci_if_error: true
67+
68+
- name: SonarCloud scan
69+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
70+
uses: SonarSource/sonarqube-scan-action@v7
71+
env:
72+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
73+
4674
conformance:
4775
name: Conformance Vectors
4876
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)