Skip to content

Commit 8ac1ff3

Browse files
committed
Update Semaphore workflow to send test results to BuildPulse
1 parent ff7c8a5 commit 8ac1ff3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.semaphore/semaphore.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ blocks:
1414
- sem-version node 12
1515
- npm install
1616
- npx cypress run --reporter junit --reporter-options "mochaFile=cypress/results/results-[hash].xml"
17+
epilogue:
18+
always: # Run these commands even when the tests fail
19+
commands:
20+
# Upload test results to BuildPulse for flaky test detection
21+
- curl -fsSL https://github.com/buildpulse/test-reporter/releases/latest/download/test-reporter-linux-amd64 > ./buildpulse-test-reporter
22+
- chmod +x ./buildpulse-test-reporter
23+
- ./buildpulse-test-reporter submit cypress/results --account-id 68192324 --repository-id 264059655 # Replace IDs with your BuildPulse account ID and repository ID
24+
secrets:
25+
- name: buildpulse-credentials

0 commit comments

Comments
 (0)