-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3213: E2E tests for light mode r=piotr-iohk a=piotr-iohk - [x] Added new workflows for testing e2e in light mode - [x] Blockfrost.api.key.gpg includes encoded API key and used while starting wallet - [x] Update [README](https://github.com/input-output-hk/cardano-wallet/tree/piotr/e2e-lite-mode-foundations/test/e2e) ### Comments New workflows added: [![E2E Linux --light](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-linux-lite.yml/badge.svg)](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-linux-lite.yml) [![E2E MacOS --light](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-macos-lite.yml/badge.svg)](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-macos-lite.yml) [![E2E Windows --light](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-windows-lite.yml/badge.svg)](https://github.com/input-output-hk/cardano-wallet/actions/workflows/e2e-windows-lite.yml) ### Issue Number ADP-1422 Co-authored-by: Piotr Stachyra <[email protected]>
- Loading branch information
Showing
11 changed files
with
327 additions
and
44 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,67 @@ | ||
name: E2E Linux --light | ||
|
||
on: | ||
schedule: | ||
- cron: "0 22 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
description: 'Network' | ||
required: true | ||
default: 'testnet' | ||
pr: | ||
description: 'PR number or "master"' | ||
default: 'master' | ||
|
||
defaults: | ||
run: | ||
working-directory: ./test/e2e | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
bundler-cache: true | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: 🕒 Get Date/Time | ||
id: date-time | ||
shell: bash | ||
run: | | ||
echo "::set-output name=value::$(rake datetime)" | ||
- name: ⚙️ Setup (get latest bins and configs and decode fixtures) | ||
run: rake setup[$NETWORK,$PR] | ||
|
||
- name: 🔍 Display versions | ||
run: rake display_versions | ||
|
||
- name: 🚀 Start wallet --light | ||
run: rake start_wallet_light[$NETWORK] | ||
|
||
- name: 🧪 Run all tests | ||
run: rake spec SPEC_OPTS="-t light" | ||
|
||
- name: 🏁 Stop wallet --light | ||
run: rake stop_wallet_light[$NETWORK] | ||
|
||
- name: 📎 Upload logs | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: ${{ runner.os }}-logs | ||
path: test/e2e/state/logs | ||
|
||
env: | ||
TESTS_E2E_FIXTURES: ${{ secrets.TESTS_E2E_FIXTURES }} | ||
NETWORK: ${{ github.event.inputs.network || 'testnet' }} | ||
PR: ${{ github.event.inputs.pr || '' }} |
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,70 @@ | ||
name: E2E MacOS --light | ||
|
||
on: | ||
schedule: | ||
- cron: "0 22 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
description: 'Network' | ||
required: true | ||
default: 'testnet' | ||
pr: | ||
description: 'PR number or "master"' | ||
default: 'master' | ||
|
||
defaults: | ||
run: | ||
working-directory: ./test/e2e | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
bundler-cache: true | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Prepare MacOS | ||
run: brew install screen | ||
|
||
- name: 🕒 Get Date/Time | ||
id: date-time | ||
shell: bash | ||
run: | | ||
echo "::set-output name=value::$(rake datetime)" | ||
- name: ⚙️ Setup (get latest bins and configs and decode fixtures) | ||
run: rake setup[$NETWORK,$PR] | ||
|
||
- name: 🔍 Display versions | ||
run: rake display_versions | ||
|
||
- name: 🚀 Start wallet --light | ||
run: rake start_wallet_light[$NETWORK] | ||
|
||
- name: 🧪 Run all tests | ||
run: rake spec SPEC_OPTS="-t light" | ||
|
||
- name: 🏁 Stop wallet --light | ||
run: rake stop_wallet_light[$NETWORK] | ||
|
||
- name: 📎 Upload logs | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: ${{ runner.os }}-logs | ||
path: test/e2e/state/logs | ||
|
||
env: | ||
TESTS_E2E_FIXTURES: ${{ secrets.TESTS_E2E_FIXTURES }} | ||
NETWORK: ${{ github.event.inputs.network || 'testnet' }} | ||
PR: ${{ github.event.inputs.pr || '' }} |
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,73 @@ | ||
name: E2E Windows --light | ||
|
||
on: | ||
schedule: | ||
- cron: "0 22 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
description: 'Network' | ||
required: true | ||
default: 'testnet' | ||
pr: | ||
description: 'PR number or "master"' | ||
default: 'master' | ||
|
||
defaults: | ||
run: | ||
working-directory: ./test/e2e | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.1 | ||
bundler-cache: true | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Prepare Windows | ||
run: | | ||
choco install wget | ||
choco install unzip | ||
choco install nssm | ||
- name: 🕒 Get Date/Time | ||
id: date-time | ||
shell: bash | ||
run: | | ||
echo "::set-output name=value::$(rake datetime)" | ||
- name: ⚙️ Setup (get latest bins and configs and decode fixtures) | ||
run: rake setup[%NETWORK%,%PR%] | ||
|
||
- name: 🔍 Display versions | ||
run: rake display_versions | ||
|
||
- name: 🚀 Start wallet --light | ||
run: rake start_wallet_light[%NETWORK%] | ||
|
||
- name: 🧪 Run all tests | ||
run: rake spec SPEC_OPTS="-t light" | ||
|
||
- name: 🏁 Stop wallet --light | ||
run: rake stop_wallet_light[%NETWORK%] | ||
|
||
- name: 📎 Upload logs | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: ${{ runner.os }}-logs | ||
path: test/e2e/state/logs | ||
|
||
env: | ||
NETWORK: ${{ github.event.inputs.network || 'testnet' }} | ||
TESTS_E2E_FIXTURES: ${{ secrets.TESTS_E2E_FIXTURES }} | ||
PR: ${{ github.event.inputs.pr || 'master' }} |
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
Oops, something went wrong.