Skip to content

Commit

Permalink
ci: add gotestsum for better unit tests output (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Chila <[email protected]>
  • Loading branch information
pchila authored Mar 21, 2022
1 parent 255f4e3 commit 12f8c96
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/unit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ runs:
uses: actions/[email protected]
with:
go-version: ${{ inputs.GO_VERSION }}
- name: Install gotestsum
shell: bash
run: go install gotest.tools/gotestsum@latest
- name: Test
shell: bash
run: go test -race -v ./...
run: gotestsum --format testname --junitfile unittests_report.xml -- -race ./...
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
files: "unittests_report.xml"

0 comments on commit 12f8c96

Please sign in to comment.