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
|
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
||||||
with:
|
with:
|
||||||
# renovate: github=golangci/golangci-lint
|
# renovate: github=golangci/golangci-lint
|
||||||
version: v2.11.3
|
version: v2.11.4
|
||||||
args: "--max-same-issues=0"
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: codespell-project/actions-codespell@master
|
- uses: codespell-project/actions-codespell@cf810cf4cbd6cdefe6ef86e55b64d524a16654a7 # master
|
||||||
with:
|
with:
|
||||||
check_filenames: true
|
check_filenames: true
|
||||||
# When using this Action in other repos, the --skip option below can be removed
|
# 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))
|
require.NoError(t, collectors.Build(t.Context(), logger))
|
||||||
|
|
||||||
metrics := make(chan prometheus.Metric)
|
metrics := make(chan prometheus.Metric)
|
||||||
got := ""
|
got := strings.Builder{}
|
||||||
|
|
||||||
errCh := make(chan error, 1)
|
errCh := make(chan error, 1)
|
||||||
|
|
||||||
@@ -64,14 +64,13 @@ func TestMultipleDirectories(t *testing.T) {
|
|||||||
err := val.Write(&metric)
|
err := val.Write(&metric)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
//nolint:modernize,perfsprint
|
got.WriteString(metric.String())
|
||||||
got += metric.String()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require.NoError(t, <-errCh)
|
require.NoError(t, <-errCh)
|
||||||
|
|
||||||
for _, f := range []string{"dir1", "dir2", "dir3", "dir3sub"} {
|
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))
|
require.NoError(t, collectors.Build(t.Context(), logger))
|
||||||
|
|
||||||
metrics := make(chan prometheus.Metric)
|
metrics := make(chan prometheus.Metric)
|
||||||
got := ""
|
got := strings.Builder{}
|
||||||
|
|
||||||
errCh := make(chan error, 1)
|
errCh := make(chan error, 1)
|
||||||
|
|
||||||
@@ -103,12 +102,11 @@ func TestDuplicateFileName(t *testing.T) {
|
|||||||
err := val.Write(&metric)
|
err := val.Write(&metric)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
//nolint:perfsprint
|
got.WriteString(metric.String())
|
||||||
got += metric.String()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require.ErrorContains(t, <-errCh, "duplicate filename detected")
|
require.ErrorContains(t, <-errCh, "duplicate filename detected")
|
||||||
|
|
||||||
require.Contains(t, got, "file")
|
require.Contains(t, got.String(), "file")
|
||||||
require.NotContains(t, got, "sub_file")
|
require.NotContains(t, got.String(), "sub_file")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,20 @@
|
|||||||
"matchUpdateTypes": ["major"],
|
"matchUpdateTypes": ["major"],
|
||||||
"enabled": false
|
"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",
|
"groupName": "golangci-lint",
|
||||||
"matchPackageNames": [
|
"matchPackageNames": [
|
||||||
|
|||||||
Reference in New Issue
Block a user