Skip to content

Commit

Permalink
ci(code-cov): adding code-cov to project (#6789)
Browse files Browse the repository at this point in the history
* added code cov action

* update ignore patterns for test coverage

* add codecov.yml file

* update invalid codecov.yml file

* added range and percision codecov.yml file

* updated excluded files

* add ci pass required

* bump threshold

* added carriage return to codecov config file

* updated global coverage

* remove codecov

* setup config and baseline

* update threshold

* Update .github/workflows/ci.yml

Co-authored-by: Mark Stacey <[email protected]>

* remove token due to public repo

* fix: #893 fix immediate lock timer (#6653)

* Stage saga changes

* Create action creators for authentication state machine

* Remove unused code

* Start and end state machine

* Clean up LockScreen

* Clean up LockManager

* Remove unused code

* Notify auth state machine from Authentication service

* Organize auth state machine in sagas

* Change sagas to TS

* Remove unused changes

* Add type to navigation in NavigationService

* Clean up sagas

* Remove console log

* Add tests for sagas

* Remove password set

* Fix saga lint issues

* Fix missing deps

* Remove ts ignore from sagas

* Clarify navigation action

* Remove commented logger

* Create LOCK_SCREEN route const

* Provide comments to sagas

* Rename biometrics listener

* set timer immediately v2

* Add biometricsStateMachineId to auth code

* Remove unused user actions

* Clean up LockManager logic to work with Android and iOS

* Better handle authentication sagas

* Fix saga export error

* Fix saga unit tests

* Bump version for test

* Refine logout state when using biometrics

* Bump version

* Remove retry logic for lock screen

* Cancel biometrics state machine when logging out

* Clean up lock screen

* Reset isAuthenticating when biometrics fail in SecureKeychain.js

* Move LockScreen to top nav level

* Persist app state when LockManager shows.

* Fix saga tests

* Move LockManager initialization

* Use existing login and logout actions for biometric state machine

* Bump versions

* Use replace when logging out

* Update LockScreen snapshoit

* Comment bioStateMachineId

* Remove LockManager to LockManagerService

* Add comments to Authentication service

* Convert LockManagerService to Typescript

* Fix typo

* Update LockManagerService visibility modifiers

* Fix lint issues

---------

Co-authored-by: tommasini <[email protected]>
Co-authored-by: tommasini <[email protected]>

* 7.4.0 (#6806)

* 7.4.0

* updated format changelog

* fix: define ReactNativePayments podspec path in podfile (#6821)

* from address changing on transaction object (#6841)

* fix: invalid transaction data used for approve transaction (#6833) (#6842)

* use valid txn data when approving txn

* rename variable

Co-authored-by: Sylva Elendu <[email protected]>

* add check approval request exists before rejecting (#6838)

* build 1155 RC2 (#6861)

* fix(test): Permission Systems fix taping connect modals (#6868)

* fix tapping connect modals

* fixed lint issues

* removed unused function, not referenced anywhere

* chore: merge 7.3.1 cherry-pick (#6923)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: version bump for 7.4.0 RC 3 (#6924)

* build 1159 RC4 (#6928)

---------

Co-authored-by: metamaskbot <[email protected]>
Co-authored-by: sethkfman <[email protected]>
Co-authored-by: Pedro Pablo Aste Kompen <[email protected]>
Co-authored-by: tommasini <[email protected]>
Co-authored-by: sethkfman <[email protected]>
Co-authored-by: Sylva Elendu <[email protected]>
Co-authored-by: Vinicius Stevam <[email protected]>
Co-authored-by: Chris Wilcox <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#6840)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sethkfman <[email protected]>
Co-authored-by: legobeat <[email protected]>

* chore: remove unused Jest preprocessor (#6913)

The file `jest.preprocessor.js` has been unused since #6170.

* docs: Update QA section in PR template (#6930)

* fix: Remove splash animation wait step from Cold Start Launch time test script (#6931)

* Change wait for splash animation to expect to displayed assertion

* Remove splash animation steps

* feat: Translation (#6937)

* remove onBackdropPress for signatures (#6936)

* feat: Migrate wdio 'SendEthMultisig' test to Detox (#6934)

* feat: github action to check if PR has requested labels before being merged (#6794)

* feat(action): check if pr includes requested labels

* fix(template): adjust PR temaple

* fix(action): add missing QA label

* fix(action): check if no label prevents merging

* fix(action): remove QA label check

* fix(action): add missing reopened condition

* fix(action): increase list of labels which prevent merges

* fix(action): add labeling guidelines

* fix(action): typo

* fix(action): typo

* fix: update README.md (#6853)

* Restore deleted SendEthMultisig.feature file (#6956)

* fix: custom position logic for badgeWrapper (#6864)

* Fixed custom position logic for badgeWrapper

* Fixed lint error

* Added README to Avatar (#6895)

* Added README to Avatar

* Updated readme based on comments

* Fixed reference link for AvatarAccount

* style: Updated minor checkbox style (#6942)

* Updated minor checkbox changes

* Updated MultiSelect snapshot

* feat: add support for template and header on result pages (#6832)

* Fix: add missed parenheses in the function call (#6958)

* translation ens ipfs alert (#6966)

* chore: small refactor (#6963)

* small refacto

* fix(): fixed linter errors

* fix(): fixed linter errors

---------

Co-authored-by: sethkfman <[email protected]>

* feat: blockaid what's new popup (#6901)

* Add blockaid what's new

Signed-off-by: Olusegun Akintayo <[email protected]>

* New image for both dark/light mode

* image should be first
fix podfile

Signed-off-by: Olusegun Akintayo <[email protected]>

* What's new fix navigation

* Revert Podfile

* use Routes

Signed-off-by: Olusegun Akintayo <[email protected]>

* revert podfile.lock

Signed-off-by: Olusegun Akintayo <[email protected]>

* Show what's new only if blockaid is enabled in settings.

---------

Signed-off-by: Olusegun Akintayo <[email protected]>

* feat: Add security alerts settings to experimental tab (#6779)

* Add security alerts settings to experimental tab

Signed-off-by: Olusegun Akintayo <[email protected]>

* add more providers label

Signed-off-by: Olusegun Akintayo <[email protected]>

* change styles label

Signed-off-by: Olusegun Akintayo <[email protected]>

* Fix tests

Signed-off-by: Olusegun Akintayo <[email protected]>

* Sort imports

Signed-off-by: Olusegun Akintayo <[email protected]>

* use environment var to determine if to show blockaid or not

Signed-off-by: Olusegun Akintayo <[email protected]>

* Removed Podfile changes

---------

Signed-off-by: Olusegun Akintayo <[email protected]>

* updated jest config to have an allow list instead of eclude list for test coverage

* bumped thresholds

* added exclusions for mocks, util/test, util/testUtils

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Olusegun Akintayo <[email protected]>
Co-authored-by: Mark Stacey <[email protected]>
Co-authored-by: Cal Leung <[email protected]>
Co-authored-by: tommasini <[email protected]>
Co-authored-by: tommasini <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: metamaskbot <[email protected]>
Co-authored-by: Pedro Pablo Aste Kompen <[email protected]>
Co-authored-by: Sylva Elendu <[email protected]>
Co-authored-by: Vinicius Stevam <[email protected]>
Co-authored-by: Chris Wilcox <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: legobeat <[email protected]>
Co-authored-by: Gustavo Antunes <[email protected]>
Co-authored-by: SamuelSalas <[email protected]>
Co-authored-by: sleepytanya <[email protected]>
Co-authored-by: Gauthier Petetin <[email protected]>
Co-authored-by: Brian August Nguyen <[email protected]>
Co-authored-by: Menox <[email protected]>
Co-authored-by: Olusegun Akintayo <[email protected]>
  • Loading branch information
20 people authored Aug 16, 2023
1 parent 68e7b2d commit 8059a71
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
- run: yarn test:unit --forceExit --silent
env:
NODE_OPTIONS: --max_old_space_size=20480
- name: Upload coverage reports to Codecov
if: ${{ always() }}
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
- name: SonarCloud Scan
# v1.9.1
uses: SonarSource/sonarcloud-github-action@5875562561d22a34be0c657405578705a169af6c
Expand Down
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
codecov:
bot: 'codecov-io'
require_ci_to_pass: yes
16 changes: 15 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,21 @@ const config = {
snapshotSerializers: ['enzyme-to-json/serializer'],
// This is an environment variable that can be used to execute logic only in development
collectCoverage: process.env.NODE_ENV !== 'production',
coveragePathIgnorePatterns: ['/node_modules/', '__mocks__', '<rootDir>/e2e/'],
collectCoverageFrom: ['<rootDir>/app/**/*.{js,ts,tsx,jsx}'],
coveragePathIgnorePatterns: [
'__mocks__/',
'<rootDir>/app/util/test/',
'<rootDir>/app/util/testUtils/',
],
coverageThreshold: {
//Code coverage thresholds for jest testing pass/fail
global: {
statements: 33.0,
branches: 25.2,
functions: 23.8,
lines: 33.4,
},
},
coverageReporters: ['text-summary', 'lcov'],
coverageDirectory: '<rootDir>/tests/coverage',
maxWorkers: process.env.NODE_ENV === 'production' ? '50%' : '20%',
Expand Down

0 comments on commit 8059a71

Please sign in to comment.