mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-29 22:06:35 +00:00
chore(deps): pin dependencies (master) (#2372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -91,5 +91,5 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
||||
with:
|
||||
# renovate: github=golangci/golangci-lint
|
||||
version: v2.11.3
|
||||
version: v2.11.4
|
||||
args: "--max-same-issues=0"
|
||||
|
||||
2
.github/workflows/spelling.yml
vendored
2
.github/workflows/spelling.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
- uses: codespell-project/actions-codespell@cf810cf4cbd6cdefe6ef86e55b64d524a16654a7 # master
|
||||
with:
|
||||
check_filenames: true
|
||||
# When using this Action in other repos, the --skip option below can be removed
|
||||
|
||||
@@ -48,7 +48,7 @@ func TestMultipleDirectories(t *testing.T) {
|
||||
require.NoError(t, collectors.Build(t.Context(), logger))
|
||||
|
||||
metrics := make(chan prometheus.Metric)
|
||||
got := ""
|
||||
got := strings.Builder{}
|
||||
|
||||
errCh := make(chan error, 1)
|
||||
|
||||
@@ -64,14 +64,13 @@ func TestMultipleDirectories(t *testing.T) {
|
||||
err := val.Write(&metric)
|
||||
require.NoError(t, err)
|
||||
|
||||
//nolint:modernize,perfsprint
|
||||
got += metric.String()
|
||||
got.WriteString(metric.String())
|
||||
}
|
||||
|
||||
require.NoError(t, <-errCh)
|
||||
|
||||
for _, f := range []string{"dir1", "dir2", "dir3", "dir3sub"} {
|
||||
require.Contains(t, got, f)
|
||||
require.Contains(t, got.String(), f)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +86,7 @@ func TestDuplicateFileName(t *testing.T) {
|
||||
require.NoError(t, collectors.Build(t.Context(), logger))
|
||||
|
||||
metrics := make(chan prometheus.Metric)
|
||||
got := ""
|
||||
got := strings.Builder{}
|
||||
|
||||
errCh := make(chan error, 1)
|
||||
|
||||
@@ -103,12 +102,11 @@ func TestDuplicateFileName(t *testing.T) {
|
||||
err := val.Write(&metric)
|
||||
require.NoError(t, err)
|
||||
|
||||
//nolint:perfsprint
|
||||
got += metric.String()
|
||||
got.WriteString(metric.String())
|
||||
}
|
||||
|
||||
require.ErrorContains(t, <-errCh, "duplicate filename detected")
|
||||
|
||||
require.Contains(t, got, "file")
|
||||
require.NotContains(t, got, "sub_file")
|
||||
require.Contains(t, got.String(), "file")
|
||||
require.NotContains(t, got.String(), "sub_file")
|
||||
}
|
||||
|
||||
@@ -19,6 +19,20 @@
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"matchBaseBranches": ["/^[0-9]\\.[0-9][0-9]$/"],
|
||||
"matchUpdateTypes": [
|
||||
"major"
|
||||
],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"matchBaseBranches": ["/^[0-9]\\.[0-9][0-9]$/"],
|
||||
"matchManagers": [
|
||||
"github-actions"
|
||||
]
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"groupName": "golangci-lint",
|
||||
"matchPackageNames": [
|
||||
|
||||
Reference in New Issue
Block a user