Skip to content

Commit

Permalink
Separate test report collection from the main target (#5061)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurishkuro committed Dec 30, 2023
1 parent 84e7b69 commit 5082239
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci-unit-tests-go-tip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
- name: Install Go Tip
uses: ./.github/actions/setup-go-tip

- name: Install test deps
# even though the same target runs from test-ci, running it separately makes for cleaner log in GH workflow
run: make install-test-tools

- name: Run unit tests
run: make test-ci

- name: Prepare unit tests report
if: always()
run: make test-report

- name: Publish Unit Test Summary 📑
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@ jobs:
go-version: 1.21.x
cache-dependency-path: ./go.sum

- name: Install test deps
# even though the same target runs from test-ci, running it separately makes for cleaner log in GH workflow
run: make install-test-tools

- name: Run unit tests
run: make test-ci

- name: Prepare unit tests report
if: always()
run: make test-report

- name: Publish Unit Test Summary 📑
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ install-ci: install-test-tools install-build-tools

.PHONY: test-ci
test-ci: GOTEST := $(GOTEST_QUIET) -json
test-ci: install-test-tools build-examples cover test-report
test-ci: install-test-tools build-examples cover

.PHONY: test-report
test-report:
Expand Down

0 comments on commit 5082239

Please sign in to comment.