We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0425d76 commit 452c465Copy full SHA for 452c465
.github/workflows/backend.yml
@@ -28,6 +28,16 @@ jobs:
28
working-directory: MyMusicBoxApi
29
run: go mod tidy
30
31
- - name: Test
+ - name: Run tests with coverage
32
33
- run: go test -v ./...
+ run: go test -v -coverprofile=coverage.out ./...
34
+
35
+ - name: Show coverage summary
36
+ working-directory: MyMusicBoxApi
37
+ run: go tool cover -func=coverage.out
38
39
+ - name: Upload coverage artifact
40
+ uses: actions/upload-artifact@v4
41
+ with:
42
+ name: coverage-report
43
+ path: MyMusicBoxApi/coverage.out
0 commit comments