Skip to content

Commit

Permalink
Use gotestsum
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 29, 2024
1 parent 3de294a commit 2e0b246
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ jobs:
with:
go-version: '1.22'

- name: Install go-junit-report
run: go install github.com/jstemmer/go-junit-report/v2@latest
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- run: mkdir junit-xml

- name: Test
shell: bash
run: go test ./... 2>&1 | tee >(go-junit-report -set-exit-code > junit-xml/${{matrix.os}}.xml)
run: gotestsum ./... --junitfile junit-xml/${{matrix.os}}.xml

- name: 'Upload junit-xml artifacts'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 2e0b246

Please sign in to comment.