Skip to content

Commit 902bed1

Browse files
committed
Simpler approach
1 parent 295ea2f commit 902bed1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/pkg.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ jobs:
1717
- name: Build
1818
run: go build -v ./...
1919

20-
# Runs go tests, uploads results, and skips quarantined flaky tests.
20+
- name: Download gotestsum
21+
run: go install gotest.tools/gotestsum@latest
22+
2123
- name: Unit Tests
24+
id: run-tests
25+
continue-on-error: true
26+
run: gotestsum --junitfile test-results.xml -- ./... -coverpkg=./... -coverprofile=coverage.txt
27+
28+
- name: Analyze and upload test results
2229
uses: smartcontractkit/.github/actions/branch-out-upload@branch-out-upload/v1
2330
with:
24-
go-test-args: ./... -coverpkg=./... -coverprofile=coverage.txt
25-
trunk-org-slug: chainlink
31+
junit-file-path: test-results.xml
32+
trunk-org-slug: smartcontractkit
33+
trunk-previous-step-outcome: ${{ steps.run-tests.outcome }}
2634
trunk-token: ${{ secrets.TRUNK_API_KEY }}
35+
trunk-job-url: ${{ format('https://github.com/{0}/actions/runs/{1}/job/{2}/attempts/{3}', github.repository, github.run_id, job.check_run_id, github.run_attempt) }}
2736

2837
- name: Fuzz Tests
2938
# the amount of --seconds here is subject to change based on how long the CI job takes in the future

0 commit comments

Comments
 (0)