Skip to content

Commit 322ed0e

Browse files
committed
Add grouped updates smoke test for go
1 parent ea089fd commit 322ed0e

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/smoke.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- go-close-pr
3131
- go-security
3232
- go-update-pr
33+
- go-grouped
3334
- gradle
3435
- gradle-version-catalog
3536
- hex

script/run-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# This script is useful for regenerating all of the smoke tests running locally.
44

5-
declare -a arr=("actions" "bundler" "cargo" "composer" "docker" "elm" "go" "gradle" "hex" "maven" "npm" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform")
5+
declare -a arr=("actions" "bundler" "cargo" "composer" "docker" "elm" "go" "go-grouped" "gradle" "hex" "maven" "npm" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform")
66
for eco in "${arr[@]}"
77
do
88
dependabot test -f "tests/smoke-$eco.yaml" -o "tests/smoke-$eco.yaml"

tests/smoke-go-grouped.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
input:
2+
job:
3+
package-manager: go_modules
4+
allowed-updates:
5+
- dependency-type: all
6+
update-type: all
7+
dependency-groups:
8+
- name: ruleset
9+
rules:
10+
patterns:
11+
- github.com/fatih/color
12+
- rsc.io/qr
13+
- rsc.io/quote
14+
experiments:
15+
goprivate: ""
16+
grouped-updates-prototype: true
17+
ignore-conditions:
18+
- dependency-name: github.com/inconshreveable/mousetrap
19+
source: tests/smoke-go.yaml
20+
version-requirement: '>1.1.0'
21+
source:
22+
provider: github
23+
repo: dependabot/smoke-tests
24+
directory: /go
25+
commit: 941c9223edd97d233737435a404d038a4bc846c4
26+
credentials-metadata:
27+
- host: github.com
28+
type: git_source
29+
max-updater-run-time: 2700
30+
credentials:
31+
- host: github.com
32+
password: $LOCAL_GITHUB_ACCESS_TOKEN
33+
type: git_source
34+
username: x-access-token

0 commit comments

Comments
 (0)