From 09e218d24e079ef5c24dafac1167f6e046929872 Mon Sep 17 00:00:00 2001 From: Aryan Mehrotra <44036979+aryanmehrotra@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:36:29 +0530 Subject: [PATCH] Update workflow to consolidate commands (#762) --- .github/workflows/go.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 58d6e8d95..0febf9a12 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -113,10 +113,8 @@ jobs: - name: Test run: | export APP_ENV=test - go test gofr.dev/pkg/... -tags migration -v -short -coverprofile package.cov -coverpkg=gofr.dev/pkg/... - grep -v 'gofr.dev/pkg/gofr/migration/mock_datasources.go' package.cov > packageWithoutMockMigrationDatasource.cov - grep -v 'gofr.dev/pkg/gofr/container/mock_datasources.go' packageWithoutMockMigrationDatasource.cov > packageWithoutMockDatasource.cov - grep -v 'google/mock_interfaces\.go' packageWithoutMockDatasource.cov > profile.cov + go test gofr.dev/pkg/... -v -short -coverprofile package.cov -coverpkg=gofr.dev/pkg/... + grep -v '/mock_' package.cov > profile.cov go tool cover -func profile.cov - name: Upload Test Coverage