Skip to content

Commit eb3f79d

Browse files
committed
Update CI workflow and Makefile: rename test report output files for consistency and install additional Go tools
1 parent 9512601 commit eb3f79d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/ci-build.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
go-version: "^1.24.0"
4040

41-
- name: "Install golangci-lint"
41+
- name: "Install extra Go tools"
4242
run: |
4343
go install github.com/jstemmer/go-junit-report@latest
4444
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
@@ -52,6 +52,22 @@ jobs:
5252
run: |
5353
make test-report
5454
55+
- name: "Test Report (Frontend)"
56+
uses: phoenix-actions/test-reporting@v15
57+
if: success() || failure()
58+
with:
59+
name: Frontend Tests
60+
path: frontend-test-results.xml
61+
reporter: java-junit
62+
63+
- name: "Test Report (Unit Tests)"
64+
uses: phoenix-actions/test-reporting@v15
65+
if: success() || failure()
66+
with:
67+
name: Unit Tests
68+
path: unit-test-results.xml
69+
reporter: java-junit
70+
5571
- name: "Dapr tool installer"
5672
uses: dapr/setup-dapr@v1
5773
with:
@@ -75,22 +91,6 @@ jobs:
7591
path: api-test-results.xml
7692
reporter: java-junit
7793

78-
- name: "Test Report (Frontend)"
79-
uses: phoenix-actions/test-reporting@v15
80-
if: success() || failure()
81-
with:
82-
name: API Integration Tests
83-
path: frontend-test-results.xml
84-
reporter: java-junit
85-
86-
- name: "Test Report (Unit Tests)"
87-
uses: phoenix-actions/test-reporting@v15
88-
if: success() || failure()
89-
with:
90-
name: API Integration Tests
91-
path: unit-test-results.xml
92-
reporter: java-junit
93-
9494
# ===== Build container images ======
9595
# build-images:
9696
# runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test: $(FRONTEND_DIR)/node_modules ## 🎯 Run unit tests for services and snap
3636
@cd $(FRONTEND_DIR); npm run test:unit
3737

3838
test-report: $(FRONTEND_DIR)/node_modules ## 🎯 Run unit tests and generate report
39-
go test -v -count=1 ./$(SERVICE_DIR)/... | go-junit-report -set-exit-code > unit-test-report.xml
39+
go test -v -count=1 ./$(SERVICE_DIR)/... | go-junit-report -set-exit-code > unit-test-results.xml
4040
@cd $(FRONTEND_DIR); npm run test:unit:report
4141

4242
test-api: ## 🧪 Run API integration tests with httpYac

0 commit comments

Comments
 (0)