Skip to content

Commit 34faed5

Browse files
committed
Enables new test results summary in Semaphore
1 parent cd82bf8 commit 34faed5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.semaphore/semaphore.yml

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ global_job_config:
1515
- curl -LO https://github.com/renderedtext/when/releases/download/v0.0.3-alpha/when
1616
- sudo mv when /usr/local/bin/when
1717
- sudo chmod +x /usr/local/bin/when
18+
- curl -s -L --fail --retry 5 https://github.com/semaphoreci/test-results/releases/download/v0.0.5/test-results_Linux_x86_64.tar.gz -o /tmp/test-results.tar.gz
19+
- cd /tmp && tar -zxf test-results.tar.gz && chmod +x test-results && sudo mv test-results /usr/local/bin/ && cd -
1820
- checkout
1921
- go get ./...
2022

@@ -76,6 +78,10 @@ blocks:
7678
commands:
7779
- make build
7880
- make e2e TEST=$TEST_FILE
81+
epilogue:
82+
always:
83+
commands:
84+
- test-results publish /tmp/junit.xml
7985

8086
promotions:
8187
- name: "Release on Github"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dev.run.change-in:
2828
make build && ./build/cli evaluate change-in --input "test/fixtures/hello.yml" --output "/tmp/hello.yml.compiled" --logs "/tmp/logs.jsonl"
2929

3030
test:
31-
gotestsum --format short-verbose
31+
gotestsum --format short-verbose --junitfile /tmp/junit.xml
3232

3333
e2e: build
3434
ruby $(TEST)

0 commit comments

Comments
 (0)