Skip to content

Commit

Permalink
renovate: update version of k6 used for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Nov 13, 2024
1 parent 2ae4690 commit bc658f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@
// Extracted "versions" include the package name, so here we strip that prefix using a regex.
"extractVersionTemplate": "{{depName}}-(?<version>.+).apk",
},
{
// Update k6 image used for integration tests only.
"customType": "regex",
"depNameTemplate": "grafana/k6",
"datasourceTemplate": "docker",
"fileMatch": [
"^integration/integration_test.go$"
],
"matchStrings": [
"grafana/k6:(?<currentValue>[\\w.-]+)"
]
}
],

"customDatasources": {
Expand Down
1 change: 1 addition & 0 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestIntegration(t *testing.T) {
k6, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
Started: true,
ContainerRequest: testcontainers.ContainerRequest{
// Renovate updates the version below. Keep its format as it is or update the renovate config with it.
Image: "grafana/k6:0.54.0",
Entrypoint: []string{"/bin/sleep", "infinity"},
Networks: []string{network.Name},
Expand Down

0 comments on commit bc658f6

Please sign in to comment.