Skip to content

ci: add go lint & test workflow #2

ci: add go lint & test workflow

ci: add go lint & test workflow #2

Triggered via push April 2, 2025 19:12
Status Success
Total duration 42s
Artifacts

go.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
golangci-lint: cmd/main.go#L87
Error return value of `fmt.Scanln` is not checked (errcheck)
golangci-lint: utils/types.go#L93
Error return value of `file.Close` is not checked (errcheck)
golangci-lint: utils/types.go#L218
Error return value of `resp.Body.Close` is not checked (errcheck)
golangci-lint: utils/types_test.go#L104
Error return value of `os.Remove` is not checked (errcheck)
golangci-lint: utils/types_test.go#L110
Error return value of `file.Close` is not checked (errcheck)
golangci-lint: utils/types_test.go#L226
Error return value of `w.Write` is not checked (errcheck)
golangci-lint: mirroring/post.go#L35
ST1005: error strings should not be capitalized (staticcheck)
golangci-lint: mirroring/post.go#L42
ST1005: error strings should not be capitalized (staticcheck)
golangci-lint: mirroring/post.go#L55
ST1005: error strings should not be capitalized (staticcheck)
golangci-lint
issues found
gotestsum
Restore cache failed: Dependencies file is not found in /home/runner/work/gitlab-sync/gitlab-sync. Supported file pattern: go.sum
gosec
Restore cache failed: Dependencies file is not found in /home/runner/work/gitlab-sync/gitlab-sync. Supported file pattern: go.sum
golangci-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/gitlab-sync/gitlab-sync. Supported file pattern: go.sum