ci: automate Go tests and Sonar coverage reporting

This commit is contained in:
2026-01-22 01:07:33 +07:00
parent 016df9caee
commit 7e635721fb
3 changed files with 13 additions and 1007 deletions
+12
View File
@@ -13,6 +13,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.5'
- name: Install dependencies
run: go mod tidy
- name: Run tests with coverage
run: go test ./... -coverprofile=coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v7.0.0
env: