-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support multi-directory update with no groups (#9148)
- Loading branch information
1 parent
753c79b
commit 795dafe
Showing
5 changed files
with
154 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
dependabot update -f input.yml --local . --updater-image ghcr.io/dependabot/dependabot-updater-silent | ||
stdout -count=2 'create_pull_request' | ||
stderr -count=2 'created \| dependency-a \( from 1.2.3 to 1.2.4 \)' | ||
pr-created frontend/expected.json | ||
pr-created backend/expected.json | ||
|
||
# Testing multi-directory configuration without a group. | ||
# Since it's impossible to tell which directory dependency-a should be | ||
# updated in, it should update in all directories. | ||
|
||
-- frontend/manifest.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.3" }, | ||
"dependency-b": { "version": "1.2.3" } | ||
} | ||
|
||
-- backend/manifest.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.3" } | ||
} | ||
|
||
-- utilities/manifest.json -- | ||
{ | ||
"unrelated": { "version": "1.0.0" } | ||
} | ||
|
||
-- frontend/expected.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.4" }, | ||
"dependency-b": { "version": "1.2.3" } | ||
} | ||
|
||
-- backend/expected.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.4" } | ||
} | ||
|
||
-- dependency-a -- | ||
{ | ||
"versions": [ | ||
"1.2.3", | ||
"1.2.4", | ||
"1.2.5" | ||
] | ||
} | ||
|
||
-- input.yml -- | ||
job: | ||
package-manager: "silent" | ||
dependencies: | ||
- dependency-a | ||
source: | ||
directories: | ||
- "/frontend" | ||
- "/utilities" | ||
- "/backend" | ||
provider: example | ||
hostname: example.com | ||
api-endpoint: https://example.com/api/v3 | ||
repo: dependabot/smoke-tests | ||
security-advisories: | ||
- dependency-name: dependency-a | ||
affected-versions: | ||
- < 1.2.4 | ||
patched-versions: [] | ||
unaffected-versions: [] | ||
security-updates-only: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
dependabot update -f input.yml --local . --updater-image ghcr.io/dependabot/dependabot-updater-silent | ||
stderr -count=2 'created \| dependency-a \( from 1.2.3 to 1.2.5 \)' | ||
stderr 'created \| dependency-b \( from 1.2.3 to 1.2.5 \)' | ||
pr-created frontend/expected-1.json | ||
pr-created frontend/expected-2.json | ||
pr-created backend/expected-3.json | ||
|
||
# Testing multi-directory configuration without a group. | ||
|
||
-- frontend/manifest.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.3" }, | ||
"dependency-b": { "version": "1.2.3" } | ||
} | ||
|
||
-- frontend/expected-1.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.5" }, | ||
"dependency-b": { "version": "1.2.3" } | ||
} | ||
|
||
-- frontend/expected-2.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.3" }, | ||
"dependency-b": { "version": "1.2.5" } | ||
} | ||
|
||
-- backend/manifest.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.3" } | ||
} | ||
|
||
-- backend/expected-3.json -- | ||
{ | ||
"dependency-a": { "version": "1.2.5" } | ||
} | ||
|
||
-- dependency-a -- | ||
{ | ||
"versions": [ | ||
"1.2.3", | ||
"1.2.4", | ||
"1.2.5" | ||
] | ||
} | ||
|
||
-- dependency-b -- | ||
{ | ||
"versions": [ | ||
"1.2.3", | ||
"1.2.4", | ||
"1.2.5" | ||
] | ||
} | ||
|
||
-- input.yml -- | ||
job: | ||
package-manager: "silent" | ||
source: | ||
directories: | ||
- "/frontend" | ||
- "/backend" | ||
provider: example | ||
hostname: example.com | ||
api-endpoint: https://example.com/api/v3 | ||
repo: dependabot/smoke-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters