-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3543 from Emurgo/release/5.2
Release / 5.2
- Loading branch information
Showing
962 changed files
with
40,033 additions
and
76,159 deletions.
There are no files selected for viewing
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,162 @@ | ||
name: E2E DApp tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, ready_for_review] | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
General: | ||
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/dapp-general')) | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
browser: ["chrome"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: distutils hack | ||
run: brew install python-setuptools | ||
|
||
- name: Forcefully update the Chrome browser | ||
if: matrix.browser=='chrome' | ||
run: brew update && brew upgrade --cask google-chrome | ||
|
||
- name: Forcefully install Firefox for Developers browser | ||
if: matrix.browser=='firefox' | ||
run: | | ||
brew update | ||
brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition | ||
echo "FIREFOX_BIN=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV | ||
- name: Read .nvmrc | ||
id: nvm | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
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@v4 | ||
env: | ||
cache-name: cache-yoroi-extension-node-modules | ||
with: | ||
# It is recommended to cache the NPM cache (~/.npm) instead of node_modules. | ||
# https://github.com/actions/cache/blob/main/examples.md#node---npm | ||
# 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: npm install | ||
run: | | ||
. install-all.sh | ||
- name: Build the test mainnet version | ||
working-directory: ./packages/yoroi-extension | ||
run: npm run test:build:mainnet | ||
|
||
- name: Run tests | ||
working-directory: ./packages/e2e-tests | ||
env: | ||
FIRST_SMOKE_TEST_WALLET: ${{ secrets.FIRST_SMOKE_TEST_WALLET }} | ||
SECOND_STATIC_TEST_WALLET: ${{ secrets.SECOND_STATIC_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET: ${{ secrets.SECOND_SMOKE_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET_FF: ${{ secrets.SECOND_SMOKE_TEST_WALLET_FF }} | ||
run: npm run test:${{ matrix.browser }}:dapp | ||
|
||
- name: Archive tests screenshots and logs | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testRunsData_E2E_tests_${{ matrix.browser }} | ||
path: | | ||
./packages/e2e-tests/mochawesome-report | ||
./packages/e2e-tests/testRunsData_${{ matrix.browser }} | ||
Failing: | ||
if: github.event.review && contains(github.event.review.body, '/dapp-failing') | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
browser: ['chrome'] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: distutils hack | ||
run: brew install python-setuptools | ||
|
||
- name: Forcefully update the Chrome browser | ||
if: matrix.browser=='chrome' | ||
run: brew update && brew upgrade --cask google-chrome | ||
|
||
- name: Forcefully install Firefox for Developers browser | ||
if: matrix.browser=='firefox' | ||
run: | | ||
brew update | ||
brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition | ||
echo "FIREFOX_BIN=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV | ||
- name: Read .nvmrc | ||
id: nvm | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
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@v4 | ||
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: npm install | ||
run: | | ||
. install-all.sh | ||
- name: Build the test mainnet version | ||
working-directory: ./packages/yoroi-extension | ||
run: npm run test:build:mainnet | ||
|
||
- name: Run tests | ||
working-directory: ./packages/e2e-tests | ||
env: | ||
FIRST_SMOKE_TEST_WALLET: ${{ secrets.FIRST_SMOKE_TEST_WALLET }} | ||
SECOND_STATIC_TEST_WALLET: ${{ secrets.SECOND_STATIC_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET: ${{ secrets.SECOND_SMOKE_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET_FF: ${{ secrets.SECOND_SMOKE_TEST_WALLET_FF }} | ||
run: npm run test:${{ matrix.browser }}:dapp:bl | ||
|
||
- name: Archive tests screenshots and logs | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testRunsData_E2E_tests_${{ matrix.browser }} | ||
path: | | ||
./packages/e2e-tests/mochawesome-report | ||
./packages/e2e-tests/testRunsData_${{ matrix.browser }} |
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,161 @@ | ||
name: E2E Ext tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, ready_for_review] | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
General: | ||
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/ext-general')) | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
browser: ["chrome"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: distutils hack | ||
run: brew install python-setuptools | ||
|
||
- name: Forcefully update the Chrome browser | ||
if: matrix.browser=='chrome' | ||
run: brew update && brew upgrade --cask google-chrome | ||
|
||
- name: Forcefully install Firefox for Developers browser | ||
if: matrix.browser=='firefox' | ||
run: | | ||
brew update | ||
brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition | ||
echo "FIREFOX_BIN=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV | ||
- name: Read .nvmrc | ||
id: nvm | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
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@v4 | ||
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: npm install | ||
run: | | ||
. install-all.sh | ||
- name: Build the test mainnet version | ||
working-directory: ./packages/yoroi-extension | ||
run: npm run test:build:mainnet | ||
|
||
- name: Run tests | ||
working-directory: ./packages/e2e-tests | ||
env: | ||
FIRST_SMOKE_TEST_WALLET: ${{ secrets.FIRST_SMOKE_TEST_WALLET }} | ||
SECOND_STATIC_TEST_WALLET: ${{ secrets.SECOND_STATIC_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET: ${{ secrets.SECOND_SMOKE_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET_FF: ${{ secrets.SECOND_SMOKE_TEST_WALLET_FF }} | ||
run: npm run test:${{ matrix.browser }} | ||
|
||
- name: Archive tests screenshots and logs | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testRunsData_E2E_tests_${{ matrix.browser }} | ||
path: | | ||
./packages/e2e-tests/mochawesome-report | ||
./packages/e2e-tests/testRunsData_${{ matrix.browser }} | ||
Failing: | ||
if: github.event.review && contains(github.event.review.body, '/ext-failing') | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
browser: ["chrome"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: distutils hack | ||
run: brew install python-setuptools | ||
|
||
- name: Forcefully update the Chrome browser | ||
if: matrix.browser=='chrome' | ||
run: brew update && brew upgrade --cask google-chrome | ||
|
||
- name: Forcefully install Firefox for Developers browser | ||
if: matrix.browser=='firefox' | ||
run: | | ||
brew update | ||
brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition | ||
echo "FIREFOX_BIN=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV | ||
- name: Read .nvmrc | ||
id: nvm | ||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
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@v4 | ||
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: npm install | ||
run: | | ||
. install-all.sh | ||
- name: Build the test mainnet version | ||
working-directory: ./packages/yoroi-extension | ||
run: npm run test:build:mainnet | ||
|
||
- name: Run tests | ||
working-directory: ./packages/e2e-tests | ||
env: | ||
FIRST_SMOKE_TEST_WALLET: ${{ secrets.FIRST_SMOKE_TEST_WALLET }} | ||
SECOND_STATIC_TEST_WALLET: ${{ secrets.SECOND_STATIC_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET: ${{ secrets.SECOND_SMOKE_TEST_WALLET }} | ||
SECOND_SMOKE_TEST_WALLET_FF: ${{ secrets.SECOND_SMOKE_TEST_WALLET_FF }} | ||
run: npm run test:${{ matrix.browser }}:bl | ||
|
||
- name: Archive tests screenshots and logs | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testRunsData_E2E_tests_${{ matrix.browser }} | ||
path: | | ||
./packages/e2e-tests/mochawesome-report | ||
./packages/e2e-tests/testRunsData_${{ matrix.browser }} |
This file was deleted.
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
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.