Skip to content

Commit

Permalink
revert target tests in test-template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zh committed Dec 20, 2024
1 parent 2c1ebd3 commit ba42296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Test
run: |
make web-build
go test -tags=${{ inputs.tags }} -timeout 5m -coverpkg=./... -coverprofile=${{ inputs.coverprofile }} -covermode=count ./registry/registry_db_test.go ./registry/client_commands_test.go
go test -tags=${{ inputs.tags }} -timeout 5m -coverpkg=./... -coverprofile=${{ inputs.coverprofile }} -covermode=count ./...
- name: Get total code coverage
if: github.event_name == 'pull_request'
id: cc
Expand All @@ -67,7 +67,7 @@ jobs:
git reset --hard ${{ github.event.pull_request.base.sha }}
make web-build
go generate ./...
go test -tags=${{ inputs.tags }} -timeout 5m -coverpkg=./... -coverprofile=base_coverage.out -covermode=count ./registry/registry_db_test.go ./registry/client_commands_test.go
go test -tags=${{ inputs.tags }} -timeout 5m -coverpkg=./... -coverprofile=base_coverage.out -covermode=count ./...
go tool cover -func=base_coverage.out > unit-base.txt
git reset --hard $HEAD
- name: Get base code coverage value
Expand Down

0 comments on commit ba42296

Please sign in to comment.