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 ab2e5d0 commit 01c3399
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,31 @@ jobs:
name: Tests
run: |
go mod tidy
go test -cover -v -failfast -p 1 $(go list ./...)
go get github.com/axw/gocov/gocov
go get github.com/AlekSi/gocov-xml
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/codacy-coverage-reporter-action@v1.3.0
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 01c3399

Please sign in to comment.