-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into evm-on-flow
- Loading branch information
Showing
410 changed files
with
15,152 additions
and
5,477 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
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
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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ | |
# actions that may result in code from that branch being executed | ||
# such as installing dependencies or running build scripts. | ||
|
||
# For security reasons, this file always uses the latest version from the default branch. | ||
# Changes made in feature branches or forks will not take effect until they are merged. | ||
|
||
name: SonarCloud | ||
|
||
on: | ||
|
@@ -17,9 +20,9 @@ permissions: | |
|
||
jobs: | ||
sonarcloud: | ||
# Only scan code from non-forked repositories that have passed the tests | ||
# Only scan code from non-forked repositories that have completed successfully using the push and pull_request events | ||
# This will skip scanning the code for forks, but will run for the main repository on PRs from forks | ||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.repository.fork == false }} | ||
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(fromJSON('["push", "pull_request"]'), github.event.workflow_run.event) && !github.event.workflow_run.repository.fork }} | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -50,6 +53,23 @@ jobs: | |
fi | ||
echo "$sonar_project_properties" > sonar-project.properties | ||
- name: Update sonar-project.properties with branch information | ||
env: | ||
EVENT: ${{ github.event.workflow_run.event }} | ||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }} | ||
BASE_BRANCH: ${{ github.event.workflow_run.pull_requests[0].base.ref || '' }} | ||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number || '' }} | ||
run: | | ||
if [ "$EVENT" == "pull_request" ]; then | ||
{ | ||
echo "sonar.pullrequest.branch=$HEAD_BRANCH" | ||
echo "sonar.pullrequest.base=$BASE_BRANCH" | ||
echo "sonar.pullrequest.key=$PR_NUMBER" | ||
} >> sonar-project.properties | ||
else | ||
echo "sonar.branch.name=$HEAD_BRANCH" >> sonar-project.properties | ||
fi | ||
- name: SonarCloud Scan | ||
# This is SonarSource/[email protected] | ||
uses: SonarSource/sonarcloud-github-action@4b4d7634dab97dcee0b75763a54a6dc92a9e6bc1 | ||
|
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 @@ | ||
name: Wait for CircleCI workflow status | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
wait-for-circleci-workflow-status: | ||
name: Wait for CircleCI workflow status | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for CircleCI workflow status | ||
env: | ||
OWNER: ${{ github.repository_owner }} | ||
REPOSITORY: ${{ github.event.repository.name }} | ||
BRANCH: ${{ github.head_ref || github.ref_name }} | ||
run: | | ||
pipeline_id=$(curl --silent "https://circleci.com/api/v2/project/gh/$OWNER/$REPOSITORY/pipeline?branch=$BRANCH" | jq -r ".items[0].id") | ||
workflow_status=$(curl --silent "https://circleci.com/api/v2/pipeline/$pipeline_id/workflow" | jq -r ".items[0].status") | ||
if [ "$workflow_status" == "running" ]; then | ||
while [ "$workflow_status" == "running" ]; do | ||
sleep 30 | ||
workflow_status=$(curl --silent "https://circleci.com/api/v2/pipeline/$pipeline_id/workflow" | jq -r ".items[0].status") | ||
done | ||
fi | ||
if [ "$workflow_status" != "success" ]; then | ||
echo "::error::Workflow status is '$workflow_status'. Exiting with error." | ||
exit 1 | ||
fi |
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,18 @@ | ||
/* Fixes for any styles that are not compatible with Storybook */ | ||
|
||
.create-snap-account-page, .remove-snap-account-page, .snap-ui-renderer { | ||
width: 100% !important; | ||
} | ||
|
||
.snap-ui-renderer__footer-centered { | ||
position: initial !important; | ||
margin-top: auto !important; | ||
} | ||
|
||
.snap-ui-renderer__container { | ||
padding-bottom: 0 !important; | ||
} | ||
|
||
.snap-ui-renderer__panel { | ||
overflow-y: auto !important; | ||
} |
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
Oops, something went wrong.