Skip to content

Commit

Permalink
Add grouped updates smoke test for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon committed Apr 27, 2023
1 parent 5a51117 commit 6713ede
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- hex
- maven
- npm
- npm-grouped
- npm-remove-transitive
- nuget
- pip
Expand Down
27 changes: 25 additions & 2 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,32 @@
},
"homepage": "https://github.com/dsp-testing/dependabot-all-updates-test",
"dependencies": {
"fetch-factory": "^0.0.1"
"fetch-factory": "^0.0.1",
"lodash": "^4.17.0"
},
"devDependencies": {
"etag": "^1.0.0"
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/parser": "^7.16.0",
"@babel/plugin-proposal-class-properties": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@types/jest": "^28.1.1",
"@types/lodash": "^4.14.181",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"babel-jest": "^28.1.1",
"babel-plugin-lodash": "^3.3.4",
"diff-sequences": "^28.1.1",
"eslint": "^8.17.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"expect": "^28.1.1",
"jest": "^28.1.1",
"jest-mock": "^28.1.1",
"jest-snapshot": "^28.1.1",
"prettier": "^2.6.2"
}
}
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-grouped" "gradle" "hex" "maven" "npm" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform")
declare -a arr=("actions" "bundler" "cargo" "composer" "docker" "elm" "go" "go-grouped" "gradle" "hex" "maven" "npm" "npm-grouped" "nuget" "pip" "pip-compile" "pipenv" "poetry" "pub" "submodules" "terraform")
for eco in "${arr[@]}"
do
dependabot test -f "tests/smoke-$eco.yaml" -o "tests/smoke-$eco.yaml"
Expand Down
125 changes: 125 additions & 0 deletions tests/smoke-npm-grouped.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
input:
job:
package-manager: npm_and_yarn
allowed-updates:
- update-type: all
dependency-groups:
- name: runtime
rules:
patterns:
- fetch-factory
- lodash
- name: babel
rules:
patterns:
- '@babel/*'
- babel-*
- eslint-plugin-babel
- name: test
rules:
patterns:
- '@types/jest'
- babel-jest
- diff-sequences
- eslint-plugin-jest
- expect
- jest
- jest-*
- name: lint
rules:
patterns:
- '@typescript-eslint/*'
- eslint
- eslint-*
- prettier
experiments:
grouped-updates-prototype: true
ignore-conditions:
- dependency-name: '@babel/cli'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.0'
- dependency-name: '@babel/core'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.4'
- dependency-name: '@babel/eslint-parser'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.3'
- dependency-name: '@babel/parser'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.4'
- dependency-name: '@babel/plugin-proposal-class-properties'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.18.6'
- dependency-name: '@babel/preset-env'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.4'
- dependency-name: '@babel/preset-typescript'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>7.21.4'
- dependency-name: '@typescript-eslint/eslint-plugin'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>5.59.1'
- dependency-name: '@types/jest'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.1'
- dependency-name: '@types/lodash'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>4.14.194'
- dependency-name: '@typescript-eslint/parser'
source: tests/smoke-npm-grouped.yaml
version-requirement: '>5.59.1'
- dependency-name: babel-jest
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.0'
- dependency-name: babel-plugin-lodash
source: tests/smoke-npm-grouped.yaml
version-requirement: '>3.3.4'
- dependency-name: diff-sequences
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.4.3'
- dependency-name: eslint
source: tests/smoke-npm-grouped.yaml
version-requirement: '>8.39.0'
- dependency-name: eslint-plugin-babel
source: tests/smoke-npm-grouped.yaml
version-requirement: '>5.3.1'
- dependency-name: eslint-plugin-import
source: tests/smoke-npm-grouped.yaml
version-requirement: '>2.27.5'
- dependency-name: eslint-plugin-jest
source: tests/smoke-npm-grouped.yaml
version-requirement: '>27.2.1'
- dependency-name: expect
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.0'
- dependency-name: fetch-factory
source: tests/smoke-npm-grouped.yaml
version-requirement: '>0.2.1'
- dependency-name: jest
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.0'
- dependency-name: jest-mock
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.0'
- dependency-name: jest-snapshot
source: tests/smoke-npm-grouped.yaml
version-requirement: '>29.5.0'
- dependency-name: lodash
source: tests/smoke-npm-grouped.yaml
version-requirement: '>4.17.21'
- dependency-name: prettier
source: tests/smoke-npm-grouped.yaml
version-requirement: '>2.8.8'
source:
provider: github
repo: dependabot/smoke-tests
directory: /npm
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

0 comments on commit 6713ede

Please sign in to comment.