ci: improve dependencies group updates

This commit is contained in:
Alexander Akait 2024-07-24 18:29:38 +03:00 committed by GitHub
commit 00cf6cd89e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 3134 additions and 3038 deletions

View File

@ -14,6 +14,12 @@ updates:
dependencies:
patterns:
- "*"
exclude-patterns:
- "eslint-scope"
- "json-parse-even-better-errors"
- "schema-utils"
- "strip-ansi"
- "rimraf"
- package-ecosystem: "github-actions"
directory: "/"
schedule:

View File

@ -157,11 +157,11 @@ jobs:
cache: "yarn"
# Install old `jest` version and deps for legacy node versions
- run: |
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 --ignore-engines
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 coffee-loader@^1.0.0 babel-loader@^8.1.0 style-loader@^2.0.0 css-loader@^5.0.1 less-loader@^8.1.1 mini-css-extract-plugin@^1.6.1 --ignore-engines
yarn --frozen-lockfile --ignore-engines
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
- run: |
yarn upgrade husky@^8.0.3 lint-staged@^13.2.1 nyc@^15.1.0 --ignore-engines
yarn upgrade husky@^8.0.3 lint-staged@^13.2.1 nyc@^15.1.0 coffee-loader@1.0.0 babel-loader@^8.1.0 style-loader@^2.0.0 css-loader@^5.0.1 less-loader@^8.1.1 mini-css-extract-plugin@^1.6.1 --ignore-engines
yarn --frozen-lockfile
if: matrix.node-version == '16.x'
# Install main version of our deps

View File

@ -143,7 +143,7 @@ jobs:
displayName: "Cache Yarn packages"
# Install old `jest` version and ignore platform problem for legacy node versions
- script: |
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 --ignore-engines
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 coffee-loader@^1.0.0 babel-loader@^8.1.0 style-loader@^2.0.0 css-loader@^5.0.1 less-loader@^8.1.1 mini-css-extract-plugin@^1.6.1 --ignore-engines
yarn --frozen-lockfile --ignore-engines
displayName: "Install dependencies (old node.js version)"
condition: eq(variables['node_version'], '^10.13.0')
@ -218,7 +218,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 --ignore-engines
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 coffee-loader@^1.0.0 babel-loader@^8.1.0 style-loader@^2.0.0 css-loader@^5.0.1 less-loader@^8.1.1 mini-css-extract-plugin@^1.6.1 --ignore-engines
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
@ -296,7 +296,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 --ignore-engines
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 coffee-loader@^1.0.0 babel-loader@^8.1.0 style-loader@^2.0.0 css-loader@^5.0.1 less-loader@^8.1.1 mini-css-extract-plugin@^1.6.1 --ignore-engines
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile

View File

@ -44,15 +44,15 @@
"@types/mime-types": "^2.1.4",
"@types/node": "^20.11.27",
"assemblyscript": "^0.27.22",
"babel-loader": "^8.1.0",
"babel-loader": "^9.1.3",
"benchmark": "^2.1.4",
"bundle-loader": "^0.5.6",
"coffee-loader": "^1.0.0",
"coffee-loader": "^5.0.0",
"coffeescript": "^2.5.1",
"core-js": "^3.6.5",
"coveralls": "^3.1.0",
"cspell": "^8.8.4",
"css-loader": "^5.0.1",
"css-loader": "^7.1.2",
"date-fns": "^3.2.0",
"es5-ext": "^0.10.53",
"es6-promise-polyfill": "^1.2.0",
@ -78,12 +78,12 @@
"json-loader": "^0.5.7",
"json5": "^2.1.3",
"less": "^4.0.0",
"less-loader": "^8.0.0",
"less-loader": "^12.2.0",
"lint-staged": "^15.2.5",
"lodash": "^4.17.19",
"lodash-es": "^4.17.15",
"memfs": "^4.9.2",
"mini-css-extract-plugin": "^1.6.1",
"mini-css-extract-plugin": "^2.9.0",
"mini-svg-data-uri": "^1.2.3",
"nyc": "^17.0.0",
"open-cli": "^8.0.0",
@ -99,7 +99,7 @@
"script-loader": "^0.7.2",
"simple-git": "^3.25.0",
"strip-ansi": "^6.0.0",
"style-loader": "^2.0.0",
"style-loader": "^4.0.0",
"terser": "^5.31.1",
"toml": "^3.0.0",
"tooling": "webpack/tooling#v1.23.3",

View File

@ -204,7 +204,8 @@ describe("StatsTestCases", () => {
.replace(new RegExp(quoteMeta(testPath), "g"), "Xdir/" + testName)
.replace(/(\w)\\(\w)/g, "$1/$2")
.replace(/, additional resolving: X ms/g, "")
.replace(/Unexpected identifier '.+?'/g, "Unexpected identifier");
.replace(/Unexpected identifier '.+?'/g, "Unexpected identifier")
.replace(/[.0-9]+(\s?(bytes|KiB))/g, "X$1");
expect(actual).toMatchSnapshot();
if (testConfig.validate) testConfig.validate(stats, stderr.toString());
done();

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ it("should handle the coffee loader correctly", function() {
});
it("should handle literate coffee script correctly", function() {
expect(require("!coffee-loader?literate!./script.coffee.md")).toBe("literate coffee test");
expect(require("!coffee-loader?literate=1!./script.coffee.md")).toBe("literate coffee test");
});
it("should generate valid code with cheap-source-map", function() {

View File

@ -4,8 +4,8 @@ it("should load a utf-8 file with BOM", function () {
});
it("should load a css file with BOM", function () {
var css = require("!css-loader?sourceMap=false!./bomfile.css").default + "";
expect(css).toBe("body{color:#abc}");
var css = require("!css-loader!./bomfile.css").default + "";
expect(css.replace(/\n\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm, '$1')).toBe("body{color:#abc}");
});
it("should load a json file with BOM", function () {

View File

@ -9,7 +9,8 @@ const config = (i, options) => ({
x: "./x" // also imports chunk but with different exports
},
output: {
filename: `${i}_[name].js`
filename: `${i}_[name].js`,
pathinfo: false
},
module: {
rules: [

View File

@ -31,7 +31,8 @@ const base = name => ({
devtool: "source-map",
entry: "./index",
output: {
filename: `${name}-[name].js`
filename: `${name}-[name].js`,
pathinfo: false
},
module: {
rules: [

View File

@ -11,7 +11,8 @@ module.exports = {
]
},
output: {
publicPath: ""
publicPath: "",
pathinfo: false
},
target: "web",
node: {

1020
yarn.lock

File diff suppressed because it is too large Load Diff