Skip to content

Commit

Permalink
Update workflow to consolidate commands (gofr-dev#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanmehrotra authored Jun 26, 2024
1 parent 401c967 commit 09e218d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09e218d

Please sign in to comment.