1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

ci: temporarily disable codecov status checks (#19354)

This commit is contained in:
Brad Decker 2023-06-01 10:11:22 -05:00 committed by GitHub
parent ea4270babf
commit c146023598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 12 deletions

View File

@ -4,13 +4,14 @@ codecov:
coverage: coverage:
round: nearest round: nearest
status: status:
project: project: off
global: patch: off
target: auto # global:
threshold: 0% # target: auto
base: auto # threshold: 0%
transforms: # base: auto
target: 100% # transforms:
threshold: 0% # target: 100%
paths: # threshold: 0%
- development/build/transforms/**/*.js # paths:
# - development/build/transforms/**/*.js

View File

@ -6,10 +6,29 @@ const reports = require('istanbul-reports');
const glob = require('fast-glob'); const glob = require('fast-glob');
const yargs = require('yargs/yargs'); const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers'); const { hideBin } = require('yargs/helpers');
const yaml = require('js-yaml'); // Temporarily commented out as we can't rely on the commented yaml file
// Can be restored when the codecov checks are restored
// const yaml = require('js-yaml');
const codecovTargets = require('../coverage-targets'); const codecovTargets = require('../coverage-targets');
const codecovConfig = yaml.load(fs.readFileSync('codecov.yml', 'utf8')); // Temporarily commented out as we can't rely on the commented yaml file
// Can be restored when the codecov checks are restored. In the meantime
// the important parts of the yaml file are copied below in normal js object
// format.
// const codecovConfig = yaml.load(fs.readFileSync('codecov.yml', 'utf8'));
const codecovConfig = {
coverage: {
status: {
global: {},
project: {
transforms: {
paths: ['development/build/transforms/**/*.js'],
},
},
},
},
};
const COVERAGE_DIR = './coverage/'; const COVERAGE_DIR = './coverage/';