Skip to content

Commit

Permalink
fixup! calc coverage and report from other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Nov 13, 2023
1 parent fe8105f commit 0935660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,24 @@ jobs:
# Build everything
- name: Run a build
run: go build ./...
shell: bash

# Runs a single command using the runners shell, -p1 for `race: limit on 8128 simultaneously alive goroutines is exceeded, dying` at macos
- name: Run a test
run: go test -v -race ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt -json > ./report.json
shell: bash

- name: Dump test report
if: always()
run: cat ./report.json
shell: bash

- name: Prepare upload files
run: |
mkdir -p ./outputs
cp ./coverage.txt ./outputs/${{ matrix.os }}.coverage.txt
cp ./report.json ./outputs/${{ matrix.os }}.report.json
shell: bash

- name: Upload coverage and report files
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 0935660

Please sign in to comment.