-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/NFT-details-new-design
- Loading branch information
Showing
248 changed files
with
13,578 additions
and
4,715 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Run integration tests | ||
|
||
on: | ||
push: | ||
branches: [develop, master] | ||
pull_request: | ||
types: [opened,reopened,synchronize] | ||
|
||
jobs: | ||
test-integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-environment | ||
|
||
- name: test:integration:coverage | ||
run: yarn test:integration:coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
# WARNING! It is currently being investigated how to make this faster | ||
# DO NOT blindly copy this workflow, not noticing the slow down, | ||
# because suddenly our tests will take hours to pass CI. | ||
# Hopefully this comment here will help prevent that. | ||
# https://github.com/MetaMask/metamask-extension/issues/25680 | ||
|
||
name: Run unit tests | ||
|
||
on: | ||
push: | ||
branches: [develop, master] | ||
pull_request: | ||
types: [opened,reopened,synchronize] | ||
|
||
jobs: | ||
test-unit-jest: | ||
test-unit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
shard: [1, 2, 3, 4, 5, 6] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-environment | ||
|
||
- name: test:coverage:jest:dev | ||
run: yarn test:coverage:jest:dev | ||
- name: test:unit:coverage | ||
run: yarn test:unit:coverage --shard=${{ matrix.shard }}/${{ strategy.job-total }} | ||
|
||
- name: Rename coverage to shard coverage | ||
run: mv coverage/coverage-final.json coverage/coverage-${{matrix.shard}}.json | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-${{matrix.shard}} | ||
path: coverage/coverage-${{matrix.shard}}.json | ||
|
||
report-coverage: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test-unit | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: test:coverage:jest | ||
run: yarn test:coverage:jest | ||
- name: Download coverage from shards | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: coverage | ||
pattern: coverage-* | ||
merge-multiple: true | ||
|
||
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
-f content='+1' | ||
env: | ||
COMMENT_ID: ${{ github.event.comment.id }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
|
||
prepare: | ||
|
@@ -146,6 +146,8 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git commit -am "Update Attributions" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }} | ||
- name: Post comment | ||
run: | | ||
if [[ $HAS_CHANGES == 'true' ]] | ||
|
@@ -156,7 +158,7 @@ jobs: | |
fi | ||
env: | ||
HAS_CHANGES: ${{ steps.attributions-changes.outputs.HAS_CHANGES }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }} | ||
PR_NUMBER: ${{ github.event.issue.number }} | ||
|
||
check-status: | ||
|
@@ -192,6 +194,6 @@ jobs: | |
gh pr comment "${PR_NUMBER}" --body "Attributions update failed. You can [review the logs or retry the attributions update here](${ACTION_RUN_URL})" | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }} | ||
PR_NUMBER: ${{ github.event.issue.number }} | ||
ACTION_RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,630 changes: 0 additions & 2,630 deletions
2,630
.yarn/patches/@metamask-gas-fee-controller-npm-15.1.2-db4d2976aa.patch
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
.yarn/patches/@metamask-snaps-utils-npm-7.7.0-2cc1f044af.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/dist/chunk-37VHIRUJ.js b/dist/chunk-37VHIRUJ.js | ||
index a909a4ef20305665a07db5c25b4a9ff7eb0a447e..98dd75bf33a9716dc6cca96a38d184645f6ec033 100644 | ||
--- a/dist/chunk-37VHIRUJ.js | ||
+++ b/dist/chunk-37VHIRUJ.js | ||
@@ -53,8 +53,8 @@ function assertIsKeyringOrigins(value, ErrorWrapper) { | ||
} | ||
function createOriginRegExp(matcher) { | ||
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&"); | ||
- const regex = escaped.replace(/\*/gu, ".*"); | ||
- return RegExp(regex, "u"); | ||
+ const regex = escaped.replace(/\\\*/gu, '.*'); | ||
+ return RegExp(`${regex}$`, 'u'); | ||
} | ||
function checkAllowedOrigin(matcher, origin) { | ||
if (matcher === "*" || matcher === origin) { | ||
diff --git a/dist/chunk-K2OTEZZZ.mjs b/dist/chunk-K2OTEZZZ.mjs | ||
index 15be5da7563a5bdf464d7e9c28ed6f04863e378a..7f38bf328e71c1feb2b8850ba050ce9e55801668 100644 | ||
--- a/dist/chunk-K2OTEZZZ.mjs | ||
+++ b/dist/chunk-K2OTEZZZ.mjs | ||
@@ -53,8 +53,8 @@ function assertIsKeyringOrigins(value, ErrorWrapper) { | ||
} | ||
function createOriginRegExp(matcher) { | ||
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&"); | ||
- const regex = escaped.replace(/\*/gu, ".*"); | ||
- return RegExp(regex, "u"); | ||
+ const regex = escaped.replace(/\\\*/gu, '.*'); | ||
+ return RegExp(`${regex}$`, 'u'); | ||
} | ||
function checkAllowedOrigin(matcher, origin) { | ||
if (matcher === "*" || matcher === origin) { |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.