Skip to content

Commit eceee7e

Browse files
docs: add dependabot configuration (#3074)
* docs: add dependabot configuration This will help users have an easier time when testcontainer is getting updated. Instead of having a specific pull request for each module, all modules are wrapped into a single pull request. * chore: add for unit tests * Apply suggestions from code review Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com> --------- Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com> Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
1 parent 872832d commit eceee7e

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

docs/dependabot.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Staying up to date with Dependabot
2+
3+
It is recommended to group the Testcontainers update modules for dependabot using the following configuration:
4+
5+
```yaml
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gomod"
9+
directories:
10+
- "/"
11+
- ...
12+
schedule:
13+
interval: "daily"
14+
groups:
15+
testcontainers-go:
16+
patterns:
17+
- "github.com/testcontainers/testcontainers-go"
18+
- "github.com/testcontainers/testcontainers-go/modules/*"
19+
```
20+
21+
This ensures that all modules are updated at the same time, and that the PRs are grouped together.
22+
23+
It also helps to avoid conflicts and makes it easier to review the changes.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ nav:
140140
- system_requirements/using_colima.md
141141
- system_requirements/using_podman.md
142142
- system_requirements/rancher.md
143+
- Dependabot: dependabot.md
143144
- Contributing: contributing.md
144145
- Getting help: getting_help.md
145146
edit_uri: edit/main/docs/

modulegen/internal/mkdocs/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type Config struct {
3333
Examples []string `yaml:"Examples,omitempty"`
3434
Modules []string `yaml:"Modules,omitempty"`
3535
SystemRequirements []any `yaml:"System Requirements,omitempty"`
36+
Dependabot string `yaml:"Dependabot,omitempty"`
3637
Contributing string `yaml:"Contributing,omitempty"`
3738
GettingHelp string `yaml:"Getting help,omitempty"`
3839
} `yaml:"nav"`

0 commit comments

Comments
 (0)