Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit a52164d

Browse files
committed
ci(ci-cd): 👷 Apply reusable coverage and sonar-cloud workflows
1 parent cc65f86 commit a52164d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

‎.github/workflows/ci-cd.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,25 @@ jobs:
128128
with:
129129
job-name: Unit
130130
script-test: pnpm test:unit
131-
with-coverage: true
131+
upload-coverage: true
132+
133+
coverage:
134+
name: Coverage
135+
needs: [test]
136+
# https://github.com/terminal-nerds/.github/blob/main/.github/workflows/coverage.yml
137+
uses: terminal-nerds/.github/.github/workflows/coverage.yml@main
138+
secrets:
139+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
140+
141+
scan:
142+
name: Scan
143+
needs: [coverage]
144+
# https://github.com/terminal-nerds/.github/blob/main/.github/workflows/sonar-cloud.yml
145+
uses: terminal-nerds/.github/.github/workflows/sonar-cloud.yml@main
146+
secrets:
147+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
148+
with:
149+
sonar-project-key: terminal-nerds_snippets
132150

133151
release:
134152
# prettier-ignore

0 commit comments

Comments
 (0)