feat(testing): add comprehensive test coverage and code quality improvements #76

Merged
bagas merged 47 commits from feat/testing into staging 2026-01-27 16:36:40 +07:00
Showing only changes of commit 1dc929cc25 - Show all commits
+18 -3
View File
@@ -23,8 +23,22 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: go mod tidy run: go mod tidy
- name: Run go vet
run: go vet ./... 2>&1 | tee vet-results.txt
- name: Run tests with coverage - name: Run tests with coverage
run: go test ./... -coverprofile=coverage -json > test-results.json run: |
go test ./... -v -coverprofile=coverage
- name: Run GolangCI-Lint Analysis
uses: golangci/golangci-lint-action@v9
with:
skip-cache: true
version: v2.6
args: >
--issues-exit-code=0
--output.text.path=stdout
--output.checkstyle.path=golangci-lint-report.xml
- name: Set SonarQube project key - name: Set SonarQube project key
run: | run: |
@@ -49,5 +63,6 @@ jobs:
-Dsonar.go.coverage.reportPaths=coverage -Dsonar.go.coverage.reportPaths=coverage
-Dsonar.test.inclusions=**/*_test.go -Dsonar.test.inclusions=**/*_test.go
-Dsonar.test.exclusions=**/vendor/** -Dsonar.test.exclusions=**/vendor/**
-Dsonar.exclusions=**/*_test.go,**/vendor/** -Dsonar.exclusions=**/*_test.go,**/vendor/**,**/golangci-lint-report.xml
-Dsonar.go.tests.reportPaths=test-results.json -Dsonar.go.govet.reportPaths=vet-results.txt
-Dsonar.go.golangci-lint.reportPaths=golangci-lint-report.xml