ci: do not upload codecov bundle when TESTING=true

Signed-off-by: Spencer Murray <spencer.murray@sentry.io>
pull/52581/head
Spencer Murray 5 months ago
parent 8b07a9be20
commit 4fe5c8a217
No known key found for this signature in database
GPG Key ID: 86F0F56E99B25932
  1. 3
      webpack.common.js

@ -19,6 +19,7 @@ const { codecovWebpackPlugin } = require('@codecov/webpack-plugin')
const appVersion = readFileSync('./version.php').toString().match(/OC_Version.+\[([0-9]{2})/)?.[1] ?? 'unknown'
const isDev = process.env.NODE_ENV === 'development'
const isTesting = process.env.TESTING === "true"
const formatOutputFromModules = (modules) => {
// merge all configs into one object, and use AppID to generate the fileNames
@ -227,7 +228,7 @@ const config = {
contextRegExp: /moment\/min$/,
}),
codecovWebpackPlugin({
enableBundleAnalysis: !isDev,
enableBundleAnalysis: !isDev && !isTesting,
bundleName: 'nextcloud',
}),
],

Loading…
Cancel
Save