Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release / 4.15.0 #2922

Merged
merged 353 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
28825c3
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Apr 28, 2022
efc8a69
Merge branch 'Ahmed/send-page-pt2-updated' of https://github.com/Emur…
neuodev Apr 28, 2022
248a32b
Merge branch 'Ahmed/qr-code' of https://github.com/Emurgo/yoroi-front…
neuodev Apr 28, 2022
e761b25
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Apr 28, 2022
f673e83
Resolve all flow errors
neuodev Apr 28, 2022
d22e23b
Add and to the state
neuodev Apr 29, 2022
12edebe
Add and to the state
neuodev Apr 29, 2022
43f7784
Flow fix
neuodev Apr 29, 2022
ed1cce9
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Apr 29, 2022
37ecb3d
Merge pull request #2812 from Emurgo/Ahmed/qr-code
yushih Apr 29, 2022
8695e89
Merge branch 'Ahmed/send-page-pt2-updated' of https://github.com/Emur…
neuodev Apr 29, 2022
d356f62
Import missing functions
neuodev Apr 29, 2022
adc9c71
update amount error
neuodev Apr 29, 2022
69c8689
Add tokens to the plannedTxInfoMap
neuodev May 4, 2022
b9d9485
Add new action to remove tokens that have no amount
neuodev May 4, 2022
2b6315e
Validate entered amount
neuodev May 4, 2022
ab63026
Remove isValidAmount method
neuodev May 4, 2022
79a7721
Validate token amount for every token entry
neuodev May 5, 2022
7989e36
Control token amount using local state
neuodev May 5, 2022
3e2fcf9
Display not enough funds to make tx error
neuodev May 5, 2022
be5d04b
Change error styling to be a warnning
neuodev May 5, 2022
e48a50d
Move min ada to its own component
neuodev May 5, 2022
bbfb986
Change error message to be more specific
neuodev May 6, 2022
a1ae768
Flow
neuodev May 6, 2022
03631ab
Add Intl
neuodev May 6, 2022
09ab308
Display Reward graph
neuodev May 10, 2022
d6d8535
Add new utils to generate graph data
neuodev May 10, 2022
b6404b1
Remove old methods & Add data types
neuodev May 10, 2022
64862c7
Pass graph data to props
neuodev May 10, 2022
8773f01
Display per epoch rewards graph
neuodev May 10, 2022
9e35183
Show only stacking page for cardano wallets
neuodev May 10, 2022
4383c94
Display labels
neuodev May 12, 2022
bf55a45
Remove y-label
neuodev May 12, 2022
866d74f
Add rewards label to the chart
neuodev May 12, 2022
5e6039d
Update bars style
neuodev May 12, 2022
c49824d
code typo
neuodev May 12, 2022
6580da4
Flow
neuodev May 12, 2022
52ebeac
Remove code comments
neuodev May 13, 2022
9c48b9b
Use hex colors
neuodev May 13, 2022
231c9b2
Add Custom axis
neuodev May 13, 2022
44e2e5e
Deselect token when closing the dialog
neuodev May 13, 2022
5875284
Merge branch 'develop' into Ahmed/fill-missing-parts-in-delegating-sc…
neuodev May 15, 2022
c93e25d
Merge branch 'develop' into Ahmed/fill-missing-parts-in-delegating-sc…
neuodev May 25, 2022
03096dd
Replace tokens with NFTs
neuodev May 31, 2022
1d707ce
Display incorrect password error message
neuodev May 31, 2022
cecc17f
Display send button with incorrect password
neuodev May 31, 2022
eff585f
Display transaction errors
neuodev Jun 1, 2022
3cd09e4
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jun 1, 2022
f022a68
Update imports
neuodev Jun 1, 2022
4bc8cbe
Fix IncludedTokens import error
neuodev Jun 1, 2022
20b70d1
Seperate tokens and nfts into two seperate lists
neuodev Jun 1, 2022
c14664e
Truncate long token names
neuodev Jun 1, 2022
e692683
Add NFT image card
neuodev Jun 2, 2022
c3d77ed
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jun 3, 2022
ed5556a
Allowing user to enter memos even if is not valid
neuodev Jun 3, 2022
0239764
Make two separate lists for tokens and NFTs
neuodev Jun 3, 2022
c12be3f
Add the min ADA error message
neuodev Jun 3, 2022
5ac62af
Remove memo state
neuodev Jun 3, 2022
3e3cb46
Remove unused code
neuodev Jun 3, 2022
5506750
Hide the add button on the NFT dialog when there is no NFTs
neuodev Jun 3, 2022
f70fd5d
Fix json parsing problem
neuodev Jun 3, 2022
edbf3f1
Fix token/nfts dialogs layout
neuodev Jun 3, 2022
1ba9d5f
Remove unselected tokens when closing the tokens dialog
neuodev Jun 3, 2022
d1b1249
Add tokens to the tokens list when clicking the add button
neuodev Jun 6, 2022
301e687
Get token amount
neuodev Jun 6, 2022
6d8dfbf
display failed tx errors
neuodev Jun 6, 2022
9d7eab3
better bech32 to hex conversion
pedromtcosta Jun 6, 2022
a0dd01b
Display incorrect wallet password error
neuodev Jun 7, 2022
72a3202
Display tx error
neuodev Jun 8, 2022
d7aaa69
Prevent user from entering zero values
neuodev Jun 8, 2022
9c865cb
Merge pull request #2881 from Emurgo/production
vsubhuman Jun 8, 2022
9a29a38
Merge branch 'develop' into better-bech32-to-hex
vsubhuman Jun 8, 2022
aec221d
added job to run e2e tests on FF
cmerloglb Jun 8, 2022
3e137fb
Merge pull request #2873 from Emurgo/better-bech32-to-hex
vsubhuman Jun 8, 2022
6892f21
deleting dependency with chrome
cmerloglb Jun 8, 2022
99094ba
changing debug command
cmerloglb Jun 8, 2022
4d93f75
change command to find ff binary
cmerloglb Jun 8, 2022
1833bab
set FIREFOX_ENV variable
cmerloglb Jun 8, 2022
045c695
Merge remote-tracking branch 'origin/develop' into github-workflow-fi…
cmerloglb Jun 8, 2022
b3a62f9
added missing changes
cmerloglb Jun 8, 2022
1808940
added step to clean npm cache
cmerloglb Jun 8, 2022
f3b00b8
increase wait time for dApp connector
cmerloglb Jun 8, 2022
e986975
Merge branch 'develop' into github-workflow-firefox
Nebyt Jun 9, 2022
cef1674
Merge pull request #2885 from Emurgo/production
vsubhuman Jun 9, 2022
37ccf0d
Merge branch 'develop' into github-workflow-firefox
Nebyt Jun 9, 2022
16d2744
Reset nfts list
neuodev Jun 10, 2022
a7e14a4
Added functions to call signData api and 1 test
cmerloglb Jun 10, 2022
a0a3ba4
Merge pull request #2891 from Emurgo/production
vsubhuman Jun 13, 2022
fc911df
Merge branch 'develop' into github-workflow-firefox
vsubhuman Jun 13, 2022
e78377b
Merge pull request #2882 from Emurgo/github-workflow-firefox
vsubhuman Jun 13, 2022
4dc7207
Added tests for collateral
cmerloglb Jun 14, 2022
2e5dd8a
Added steps for errors
cmerloglb Jun 14, 2022
171f043
Merge branch 'develop' into e2e-signing-data
cmerloglb Jun 14, 2022
4585701
Fixed issues with flow
cmerloglb Jun 14, 2022
4d006b4
Added fixes for lint
cmerloglb Jun 14, 2022
5351b83
Add max assets error message
neuodev Jun 15, 2022
b0b17d3
Set max assets allowed to be 10
neuodev Jun 15, 2022
fdc5360
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jun 15, 2022
1569929
show "Loading..." instead of "Syncing..." when loading wallet data du…
yushih Jun 15, 2022
09444bb
Fix wallet restore dialog
neuodev Jun 15, 2022
a2063cc
Remove amount validtion from the txBuilder store
neuodev Jun 15, 2022
a0d53d0
Render fiat amount
neuodev Jun 15, 2022
1e7317a
Make number of max assets dynamic
neuodev Jun 15, 2022
bad4267
Increate maxAssetsAllowed to be 10
neuodev Jun 15, 2022
fa108d2
Add search bars
neuodev Jun 15, 2022
3e8bcbf
Added some requested changes
cmerloglb Jun 16, 2022
067ab6d
Merge pull request #2894 from Emurgo/production
vsubhuman Jun 17, 2022
29cb398
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jun 18, 2022
2e58d70
Merge branch 'Ahmed/send-page-pt2-updated' of https://github.com/Emur…
neuodev Jun 18, 2022
7056070
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jun 20, 2022
3fc0701
Merge branch 'Ahmed/send-page-pt2-updated' of https://github.com/Emur…
neuodev Jun 20, 2022
0578431
Update AddTokenDialog && Remove Min ADA
neuodev Jun 20, 2022
ff95ae8
Prevent user from entering 0 amount
neuodev Jun 20, 2022
6673720
Display token decimals
neuodev Jun 20, 2022
7206997
Get min-ada from txBuilder store
neuodev Jun 20, 2022
555847f
Update memo field
neuodev Jun 21, 2022
655879c
Merge branch 'develop' into yushi/show-wallet-loading
vsubhuman Jun 21, 2022
eb55726
Merge pull request #2892 from Emurgo/yushi/show-wallet-loading
vsubhuman Jun 21, 2022
4a72219
Merge branch 'develop' into Ahmed/send-page-pt2-updated
vsubhuman Jun 21, 2022
98f9e36
flow fixes
vsubhuman Jun 21, 2022
bd61ba3
Search by finger print
neuodev Jun 21, 2022
e3e65e0
Fixing icon importing
vsubhuman Jun 21, 2022
c88a750
Update token selection logic
neuodev Jun 21, 2022
7a5ad34
Merge pull request #2791 from Emurgo/Ahmed/send-page-pt2-updated
vsubhuman Jun 21, 2022
06aba6a
Merge remote-tracking branch 'origin/develop' into Ahmed/multi-assets
vsubhuman Jun 21, 2022
e192450
Calculate Min ADA
neuodev Jun 22, 2022
23b59f6
Merge branch 'Ahmed/multi-assets' of https://github.com/Emurgo/yoroi-…
neuodev Jun 22, 2022
32f76a0
Erase entered amount when deselect a token
neuodev Jun 22, 2022
7c35b35
Add min ada tooltip
neuodev Jun 22, 2022
6d7c34c
Added changes to get collateral pop up
cmerloglb Jun 22, 2022
79b1aac
Add hyperlink in the tooltip
neuodev Jun 22, 2022
556960c
Render min ADA
neuodev Jun 22, 2022
423ea6c
Using package-lock to develop
cmerloglb Jun 22, 2022
0462865
Hide min-ADA label when sending all tokens
neuodev Jun 22, 2022
56633f0
Fixed issues when running lint
cmerloglb Jun 22, 2022
b292c87
Merge branch 'develop' into e2e-signing-data
cmerloglb Jun 22, 2022
186abaa
Remove unsed code
neuodev Jun 22, 2022
ee5f31b
add icon
yushih Jun 23, 2022
f433a85
add comment
yushih Jun 23, 2022
79d013a
use a smaller-sized icon
yushih Jun 23, 2022
206914b
use string interpolation
yushih Jun 23, 2022
e814cf3
Merge pull request #2895 from Emurgo/yushi/dapp-icon
vsubhuman Jun 23, 2022
37945c2
Merge branch 'develop' into Ahmed/multi-assets
vsubhuman Jun 23, 2022
36f42ac
Make Min ADA consistent between diffrent dialgos
neuodev Jun 23, 2022
444bdf7
Merge branch 'Ahmed/multi-assets' of https://github.com/Emurgo/yoroi-…
neuodev Jun 23, 2022
8085167
Remove by collection of tokens instead of one
neuodev Jun 23, 2022
2b73118
Fix typo
neuodev Jun 24, 2022
4df43e2
copy origin ledger connect website code into here
yushih Jun 24, 2022
0803647
Changed logging messages
cmerloglb Jun 24, 2022
0d1a968
merge in ledger connect website
yushih Jun 24, 2022
51385f9
Merge branch 'develop' into e2e-signing-data
Nebyt Jun 24, 2022
94df623
Merge pull request #2889 from Emurgo/e2e-signing-data
Nebyt Jun 24, 2022
b780021
fix flow
yushih Jun 25, 2022
6f61448
do not include ledger page messages into main window translations
yushih Jun 25, 2022
83d0ee4
fix language change not immediately effective
yushih Jun 26, 2022
a1fa11f
Merge branch 'develop' into Ahmed/multi-assets
neuodev Jun 26, 2022
bf9e1df
lint
yushih Jun 27, 2022
08bbc75
refresh wallet delegation data at start up
yushih Jun 27, 2022
04e99f7
bug fix: treat TADA and ADA as one
yushih Jun 27, 2022
3e4b3e5
Remove dead code & flow
neuodev Jun 27, 2022
2ba6786
Merge branch 'Ahmed/multi-assets' of https://github.com/Emurgo/yoroi-…
neuodev Jun 27, 2022
d6ee5fd
Merge pull request #2898 from Emurgo/yushi/fix-all-wallets-loading
vsubhuman Jun 28, 2022
d73fbaf
Merge branch 'develop' into yushi/ledger-merge
vsubhuman Jun 28, 2022
f95f30e
add connector.listNfts
ozgrakkurt Jun 28, 2022
b0e236b
fix eslint and flow errors
ozgrakkurt Jun 28, 2022
66cda40
Merge branch 'develop' into ozgur/impl-listnfts
ozgrakkurt Jun 28, 2022
7b4748b
nest metadata inside nft in listNfts
ozgrakkurt Jun 28, 2022
e45f4cb
Merge branch 'ozgur/impl-listnfts' of https://github.com/Emurgo/yoroi…
ozgrakkurt Jun 28, 2022
62a70a4
fix encoding mistake in connector listNfts
ozgrakkurt Jun 29, 2022
dec10d9
Merge branch 'develop' into Ahmed/multi-assets
vsubhuman Jun 29, 2022
05ea645
Merge pull request #2832 from Emurgo/Ahmed/multi-assets
vsubhuman Jun 29, 2022
70dd263
Merge branch 'develop' into yushi/ledger-merge
vsubhuman Jun 29, 2022
c976d6f
Update cardano-example
neuodev Jun 30, 2022
2e0044a
Merge branch 'develop' into ozgur/impl-listnfts
neuodev Jun 30, 2022
98de778
Use 'const' instead of 'let'
neuodev Jun 30, 2022
d91ca6c
listNfts: update find721metadata function
ozgrakkurt Jun 30, 2022
62920f1
Merge branch 'ozgur/impl-listnfts' of github.com:Emurgo/yoroi-fronten…
ozgrakkurt Jun 30, 2022
de3dd49
revert packages/yoroi-extension/package-lock.json
ozgrakkurt Jun 30, 2022
e9d86b8
revert packages/yoroi-extension/package-lock.json
ozgrakkurt Jun 30, 2022
91ac375
Merge branch 'develop' into Ahmed/fill-missing-parts-in-delegating-sc…
vsubhuman Jun 30, 2022
36a1d46
revert script files
ozgrakkurt Jun 30, 2022
45139f4
return hex encoded assetName from listNfts
ozgrakkurt Jul 1, 2022
f9c66aa
hw wallets multi-asset sending implementation
yushih Jul 1, 2022
14d7aa1
Add maxSendableADA
neuodev Jul 1, 2022
8794eb0
Merge pull request #2904 from Emurgo/yushi/hw-wallet-multi-assets
vsubhuman Jul 1, 2022
85f7580
Merge branch 'develop' into Ahmed/fill-missing-parts-in-delegating-sc…
vsubhuman Jul 1, 2022
8058ade
Merge pull request #2848 from Emurgo/Ahmed/fill-missing-parts-in-dele…
vsubhuman Jul 1, 2022
b47acea
Merge pull request #2899 from Emurgo/ozgur/impl-listnfts
yushih Jul 2, 2022
c9b60e7
Round Min-ADA Value to be 1 instead of 0.9999998
neuodev Jul 3, 2022
b810b70
fix webpack rules for images
yushih Jul 2, 2022
d8c7bb8
show correct error message when user cancels a tx on ledger device
yushih Jul 2, 2022
8c0737e
Show 'Insufficient funds' error
neuodev Jul 4, 2022
1cea5c9
Update flow
neuodev Jul 4, 2022
af5d87c
Remove unused imports
neuodev Jul 4, 2022
aa1a6a0
Update error message
neuodev Jul 4, 2022
18f9466
Render max sendable amount error
neuodev Jul 4, 2022
2b54d41
Merge branch 'develop' into Ahmed/max-ada
neuodev Jul 4, 2022
bb779f2
Merge pull request #2905 from Emurgo/Ahmed/fix-min-ada
vsubhuman Jul 4, 2022
6910327
Merge branch 'develop' into Ahmed/max-ada
vsubhuman Jul 4, 2022
b457cc8
Merge branch 'develop' into yushi/fix-language-change
vsubhuman Jul 4, 2022
b232326
Merge pull request #2897 from Emurgo/yushi/fix-language-change
vsubhuman Jul 4, 2022
f7701ae
Merge branch 'develop' into yushi/ledger-merge
vsubhuman Jul 4, 2022
dae39c2
Merge branch 'develop' into Ahmed/max-ada
vsubhuman Jul 4, 2022
f6890d1
WIP: Added logging to tests
cmerloglb Jul 5, 2022
1df4e34
Remove comments
neuodev Jul 5, 2022
0051f12
Merge branch 'Ahmed/max-ada' of https://github.com/Emurgo/yoroi-front…
neuodev Jul 5, 2022
caa9105
Added logging to mockCardanoServer
cmerloglb Jul 5, 2022
ef3ba41
optimize connector list NFT API
yushih Jul 5, 2022
37bac0e
Merge pull request #2910 from Emurgo/yushi/optimize-list-nft
vsubhuman Jul 7, 2022
ecd7861
Merge branch 'develop' into yushi/ledger-merge
vsubhuman Jul 7, 2022
7e78415
Merge pull request #2896 from Emurgo/yushi/ledger-merge
vsubhuman Jul 7, 2022
c7e909c
Merge branch 'develop' into Ahmed/max-ada
vsubhuman Jul 7, 2022
52481b2
Version bump: 4.14.501 (nightly)
vsubhuman Jul 7, 2022
6356303
Added sugested changes
cmerloglb Jul 7, 2022
d4e3579
Merge branch 'develop' into e2e-tests-logging
cmerloglb Jul 7, 2022
a64efd4
Merge branch 'develop' into Ahmed/max-ada
vsubhuman Jul 8, 2022
274a8cf
Tests for FAQ
cmerloglb Jul 8, 2022
d0a962e
Added changes to folder structure
cmerloglb Jul 11, 2022
57b05ed
Fixed lint issues
cmerloglb Jul 11, 2022
da3f6a5
Fixed lint issues
cmerloglb Jul 11, 2022
b3b0a90
Merge branch 'e2e-tests-logging' into e2e-tests-faq
cmerloglb Jul 11, 2022
49ccc30
Merge pull request #2907 from Emurgo/e2e-tests-logging
Nebyt Jul 12, 2022
3ee54de
Merge branch 'develop' into e2e-tests-faq
Nebyt Jul 12, 2022
5e5b27c
Merge pull request #2913 from Emurgo/e2e-tests-faq
Nebyt Jul 12, 2022
4fee451
query multiasset metadata using asset name in hex
yushih Jul 7, 2022
fa77a4a
flow fix
yushih Jul 13, 2022
9e93bd0
Merge branch 'develop' into Ahmed/max-ada
neuodev Jul 13, 2022
7960503
Remove dead code
neuodev Jul 13, 2022
401e27f
Merge branch 'Ahmed/max-ada' of https://github.com/Emurgo/yoroi-front…
neuodev Jul 13, 2022
3532dc3
Merge pull request #2911 from Emurgo/yushi/fix-multiasset-metadata
vsubhuman Jul 13, 2022
18a7a7a
Add ADA locked for assets to the pure output
neuodev Jul 14, 2022
cbea292
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jul 14, 2022
dcacce5
Use old send all logic with pure ada wallets
neuodev Jul 14, 2022
97bc358
Recalculation of the max value when the transaction content is changed
neuodev Jul 15, 2022
ed8ab23
flow
neuodev Jul 16, 2022
e8722f0
Reset 'shouldSendMax' flag
neuodev Jul 18, 2022
e3fbd35
paginate request to mint metadata
yushih Jul 20, 2022
8ec6225
Merge pull request #2906 from Emurgo/Ahmed/max-ada
vsubhuman Jul 20, 2022
0dfb77c
Merge branch 'develop' into yushi/page-mint-metadata-request
vsubhuman Jul 20, 2022
ee6928e
eslint
vsubhuman Jul 20, 2022
2fef9c7
eslint
vsubhuman Jul 20, 2022
b2ea013
Merge pull request #2920 from Emurgo/yushi/page-mint-metadata-request
vsubhuman Jul 20, 2022
9714799
Version bump: 4.15.0
vsubhuman Jul 20, 2022
4e900b2
Fixing safe fields access in nft gallery
vsubhuman Jul 21, 2022
b97fd1d
Fix for safe array access
vsubhuman Jul 21, 2022
6966e78
fix crypto currency symbol on withdrawal tx confirmation dialog
yushih Jul 22, 2022
022c9fe
fix deregistration deposit amount display
yushih Jul 22, 2022
e8fbc5f
do not show fiat amounts on withdraw dialog
yushih Jul 22, 2022
8cc186f
Merge pull request #2927 from Emurgo/yushi/fix-withdraw-dialog-crypto…
vsubhuman Jul 22, 2022
0664d59
reset revamped hardware wallet send error
yushih Jul 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 70 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
npm run test

E2E_tests_dApp:
E2E_tests_dApp_Chrome:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check'))
runs-on: macos-10.15
steps:
Expand Down Expand Up @@ -97,6 +97,75 @@ jobs:
- name: Run dapp connector tests
working-directory: ./packages/yoroi-extension
run: npm run test:run:e2e:dApp:chrome
- name: Archive tests screenshots and logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: testRunsData
path: ./packages/yoroi-extension/testRunsData

E2E_tests_dApp_FF:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/run_dapp_ff'))
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Forcefully install Firefox for Developers browser
run: brew update && brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition
- name: Set up env variable for FF
run: echo "FIREFOX_DEV=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Cache extension node modules
# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
uses: actions/cache@v2
env:
cache-name: cache-yoroi-extension-node-modules
with:
# https://github.com/actions/cache/blob/main/examples.md#node---npm
# It is recommended to cache the NPM cache (~/.npm) instead of node_modules.
# But we put node version into the cache key and cache node_modules.
path: packages/yoroi-extension/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-node-${{ steps.nvm.outputs.NVMRC }}-${{ hashFiles('packages/yoroi-extension/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache connector node modules
# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
uses: actions/cache@v2
env:
cache-name: cache-yoroi-connector-node-modules
with:
# https://github.com/actions/cache/blob/main/examples.md#node---npm
# It is recommended to cache the NPM cache (~/.npm) instead of node_modules.
# But we put node version into the cache key and cache node_modules.
path: packages/yoroi-ergo-connector/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-node-${{ steps.nvm.outputs.NVMRC }}-${{ hashFiles('packages/yoroi-ergo-connector/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Clean cache
run: npm cache clean -f
- name: npm install
run: |
. install-all.sh
- name: Build the test version
working-directory: ./packages/yoroi-extension
run: npm run test:build
- name: Create the report's folder
working-directory: ./packages/yoroi-extension
run: |
mkdir reports
touch ./reports/cucumberReports.json
- name: Run dapp connector tests
working-directory: ./packages/yoroi-extension
run: npm run test:run:e2e:dApp:firefox
- name: Archive tests screenshots and logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions packages/yoroi-ergo-connector/example-cardano/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ <h1 class="display-4 text-center">Cardano dApp Example</h1>
<input class="w-40" type="text" value="sign me" id="sign-data-payload" />
<button id="sign-data" class="btn btn-light w-50">Sign data</button>
</div>
<div class="col-6 mb-4">
<button id="nfts" class="btn btn-light w-100" >Get NFTs</button>
</div>
<div class="col-6 mb-4">
<a href="/subpage.html">Go to a subpage</a>
</div>
Expand Down
Loading