From c995ad778436ffbc625fa20e2540568cd1386d5f Mon Sep 17 00:00:00 2001 From: Raphael Simon Date: Mon, 28 Aug 2023 17:56:16 -0700 Subject: [PATCH] Try out deep source --- .github/workflows/ci.yml | 1 + .gitignore | 4 ++++ Makefile | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8b1f07ae4..75fcbdcb2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: run: make ci env: GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }} + DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} Windows: name: Windows diff --git a/.gitignore b/.gitignore index a8d3f3cf51..32c938311d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ cmd/goa/goa *~ *.orig *.swp + +# Deepsource +cover.out +bin/ diff --git a/Makefile b/Makefile index 7d51b4f3ca..8418309ca6 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ depend: @cp $(PROTOC_EXEC) $(GOPATH)/bin && \ rm -rf $(PROTOC) && \ echo "`protoc --version`" + @curl https://deepsource.io/cli | sh lint: ifneq ($(GOOS),windows) @@ -70,7 +71,8 @@ ifneq ($(GOOS),windows) endif test: - go test ./... + go test ./... -coverprofile=cover.out + ./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out release: release-goa release-examples release-plugins