Skip to content

Commit

Permalink
Add grouped updates smoke test for yarn berry workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon committed Jun 15, 2023
1 parent a7ed7f4 commit eb56caf
Show file tree
Hide file tree
Showing 29 changed files with 172 additions and 4,967 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cache-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- { path: tests/smoke-yarn-berry.yaml, name: yarn-berry }
- { path: tests/smoke-yarn-berry-group-rules.yaml, name: yarn-berry-group-rules }
- { path: tests/smoke-yarn-berry-workspaces.yaml, name: yarn-berry-workspaces }
- { path: tests/smoke-yarn-berry-workspaces-group-rules.yaml, name: yarn-berry-workspaces-group-rules }
- { path: tests/smoke-yarn-group-rules.yaml, name: yarn-group-rules }
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cache-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ on:
- yarn-berry
- yarn-berry-group-rules
- yarn-berry-workspaces
- yarn-berry-workspaces-group-rules
- yarn-group-rules

env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/refresh-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- yarn-berry
- yarn-berry-group-rules
- yarn-berry-workspaces
- yarn-berry-workspaces-group-rules
- yarn-group-rules
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- yarn-berry
- yarn-berry-group-rules
- yarn-berry-workspaces
- yarn-berry-workspaces-group-rules
- yarn-group-rules
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion script/run-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

declare -a arr=("actions" "bundler" "cargo" "composer" "docker" "elm" "go" "go-group-rules" "gradle" "hex" "maven" "npm" "npm-group-rules" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform" "yarn" "yarn-berry" "yarn-berry-group-rules" "yarn-group-rules")
declare -a arr=("actions" "bundler" "cargo" "composer" "docker" "elm" "go" "go-group-rules" "gradle" "hex" "maven" "npm" "npm-group-rules" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform" "yarn" "yarn-berry" "yarn-berry-group-rules" "yarn-berry-workspaces" "yarn-berry-workspaces-group-rules" "yarn-group-rules")
for eco in "${arr[@]}"
do
dependabot test -f "tests/smoke-$eco.yaml" -o "tests/smoke-$eco.yaml"
Expand Down
43 changes: 43 additions & 0 deletions tests/smoke-yarn-berry-workspaces-group-rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
input:
job:
package-manager: npm_and_yarn
allowed-updates:
- dependency-type: all
dependency-groups:
- name: ruleset
rules:
patterns:
- axios
- fetch-factory
- lodash
experiments:
grouped-updates-prototype: true
ignore-conditions:
- dependency-name: '@types/lodash'
source: tests/smoke-yarn-berry-workspaces-group-rules.yaml
version-requirement: '>4.14.195'
- dependency-name: axios
source: tests/smoke-yarn-berry-workspaces-group-rules.yaml
version-requirement: '>1.4.0'
- dependency-name: etag
source: tests/smoke-yarn-berry-workspaces-group-rules.yaml
version-requirement: '>1.8.1'
- dependency-name: fetch-factory
source: tests/smoke-yarn-berry-workspaces-group-rules.yaml
version-requirement: '>0.2.1'
- dependency-name: lodash
source: tests/smoke-yarn-berry-workspaces-group-rules.yaml
version-requirement: '>4.17.21'
source:
provider: github
repo: dependabot/smoke-tests
directory: /yarn-berry/workspaces
commit: ~
credentials-metadata:
- host: github.com
type: git_source
credentials:
- host: github.com
password: $LOCAL_GITHUB_ACCESS_TOKEN
type: git_source
username: x-access-token
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 8 additions & 3 deletions yarn-berry/workspaces/project/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"name": "my-project",
"name": "project",
"dependencies": {
"axios": "^0.27.2",
"fetch-factory": "^0.0.1",
"lodash": "^4.17.15"
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.33.1",
"@types/lodash": "^4.14.189"
"@types/lodash": "^4.14.178",
"etag": "^1.0.0"
}
}
Loading

0 comments on commit eb56caf

Please sign in to comment.