Skip to content

chore(deps): update golang version #54

chore(deps): update golang version

chore(deps): update golang version #54

Triggered via push March 5, 2024 19:58
Status Failure
Total duration 1m 7s
Artifacts

on_push_pr.yaml

on: push
Test binary compilation and packaging for linux
31s
Test binary compilation and packaging for linux
Run all static analysis checks
58s
Run all static analysis checks
Run unit tests on *Nix
38s
Run unit tests on *Nix
Run unit tests on Windows
48s
Run unit tests on Windows
Run integration tests on *Nix
27s
Run integration tests on *Nix
Matrix: Create MSI
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 6 warnings
Run integration tests on *Nix
Process completed with exit code 2.
Test binary compilation and packaging for linux
Process completed with exit code 2.
Run unit tests on *Nix
Process completed with exit code 2.
Run all static analysis checks: src/metrics_test.go#L53
53-83 lines are duplicate of `src/metrics_test.go:96-125` (dupl)
Run all static analysis checks: src/metrics_test.go#L96
96-125 lines are duplicate of `src/metrics_test.go:53-83` (dupl)
Run all static analysis checks: src/inventory.go#L16
Function 'populateInventory' has too many statements (57 > 50) (funlen)
Run all static analysis checks: src/inventory.go#L38
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(curValue, "/", ":", -1)` (gocritic)
Run all static analysis checks: src/metrics.go#L274
assignOp: replace `prefix = prefix + "."` with `prefix += "."` (gocritic)
Run all static analysis checks: src/metrics.go#L245
sloppyLen: len(jsonMetrics) <= 0 can be len(jsonMetrics) == 0 (gocritic)
Run all static analysis checks: src/metrics.go#L272
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(prefix, "/", ".", -1)` (gocritic)
Run all static analysis checks: src/metrics.go#L197
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(resp.Header.Get("Server"), "nginx/", "", -1)` (gocritic)
Run all static analysis checks: src/metrics.go#L359
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(resp.Header.Get("Server"), "nginx/", "", -1)` (gocritic)
Run all static analysis checks: src/nginx.go#L148
ifElseChain: rewrite if-else to switch statement (gocritic)
Run integration tests on *Nix
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run integration tests on *Nix
Restore cache failed: Dependencies file is not found in /home/runner/work/nri-nginx/nri-nginx. Supported file pattern: go.sum
Run unit tests on Windows
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run unit tests on Windows
Restore cache failed: Dependencies file is not found in D:\a\nri-nginx\nri-nginx. Supported file pattern: go.sum
Run all static analysis checks
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run all static analysis checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/