Skip to content

Commit

Permalink
Only use deep source during Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Aug 29, 2023
1 parent 9b32e48 commit e553e49
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
env:
GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }}

- name: Report test-coverage to DeepSource
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key go --value-file cover.out
env:
DEEPSOURCE_TOKEN: ${{ secrets.DEEPSOURCE_TOKEN }}

Windows:
name: Windows
runs-on: windows-latest
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ cmd/goa/goa
*~
*.orig
*.swp

# DeepSource cruft
cover.out
bin/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ifneq ($(GOOS),windows)
endif

test:
go test ./...
go test ./... --coverprofile=cover.out

release: release-goa release-examples release-plugins

Expand Down

0 comments on commit e553e49

Please sign in to comment.