Skip to content

Commit

Permalink
upload coverage for linux/macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Jan 6, 2024
1 parent 438b79e commit fbb46fd
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,29 @@ jobs:
name: Tests
run: |
go mod tidy
go test -cover -v -failfast -p 1 $(go list ./...)
go install github.com/axw/gocov/gocov
go install github.com/AlekSi/gocov-xml
go test -cover -v -failfast -p 1 $(go list ./...) -coverprofile cover.out
gocov convert cover.out | gocov-xml > coverage.xml
if: runner.os != 'Windows'
env:
SN_SERVER: ${{ secrets.SN_SERVER }}
SN_EMAIL: ${{ secrets.SN_EMAIL }}
SN_PASSWORD: ${{ secrets.SN_PASSWORD }}
-
name: Codacy Coverage Reporter
uses: codacy/[email protected]
with:
coverage-reports: coverage.xml
if: runner.os != 'Windows'
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
-
name: Windows Tests
run: |
go mod tidy
go test -v -failfast -p 1 $(go list ./...)
if: runner.os != 'Windows'
env:
SN_SERVER: ${{ secrets.SN_SERVER }}
SN_EMAIL: ${{ secrets.SN_EMAIL }}
Expand Down

0 comments on commit fbb46fd

Please sign in to comment.