mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Unbreak CI checks (#18813)
* Fix builds from forks * bump coverage targets --------- Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
This commit is contained in:
parent
086b7dade5
commit
ef01dc1391
@ -6,10 +6,10 @@
|
||||
// subset of files to check against these targets.
|
||||
module.exports = {
|
||||
global: {
|
||||
lines: 69.3,
|
||||
branches: 57,
|
||||
statements: 68.5,
|
||||
functions: 61.5,
|
||||
lines: 69.92,
|
||||
branches: 57.63,
|
||||
statements: 69.24,
|
||||
functions: 62.51,
|
||||
},
|
||||
transforms: {
|
||||
branches: 100,
|
||||
|
@ -110,10 +110,18 @@ const standardScuttlingConfig = {
|
||||
* @returns {string} The Infura project ID.
|
||||
*/
|
||||
function getInfuraProjectId({ buildType, variables, environment, testing }) {
|
||||
const EMPTY_PROJECT_ID = '00000000000000000000000000000000';
|
||||
if (testing) {
|
||||
return '00000000000000000000000000000000';
|
||||
return EMPTY_PROJECT_ID;
|
||||
} else if (environment !== ENVIRONMENT.PRODUCTION) {
|
||||
// Skip validation because this is unset on PRs from forks.
|
||||
// For forks, return empty project ID if we don't have one.
|
||||
if (
|
||||
!variables.isDefined('INFURA_PROJECT_ID') &&
|
||||
environment === ENVIRONMENT.PULL_REQUEST
|
||||
) {
|
||||
return EMPTY_PROJECT_ID;
|
||||
}
|
||||
return variables.get('INFURA_PROJECT_ID');
|
||||
}
|
||||
/** @type {string|undefined} */
|
||||
|
Loading…
Reference in New Issue
Block a user