Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge remote-tracking branch 'origin/master' into nightly
- Loading branch information
Showing
34 changed files
with
445 additions
and
312 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,83 @@ | ||
name: nightly-e2e | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: [nightly-test] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
fail: | ||
name: "Fail the workflow run by exiting" | ||
if: ${{ github.event_name != 'workflow_dispatch' && github.event.workflow_run.conclusion != 'success' }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: "exit 1" | ||
run: exit 1 | ||
|
||
test: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: nightly | ||
|
||
- name: 🧰 Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: 💽 Install dependencies | ||
run: | | ||
yarn install --immutable --inline-builds --mode=skip-build | ||
- name: 🔨 Build | ||
run: | | ||
yarn build | ||
- name: 🌐 Setup local test network | ||
working-directory: packages/e2e | ||
run: | | ||
yarn local-network:up -d | ||
env: | ||
POSTGRES_PORT: '5435' | ||
OGMIOS_PORT: '1340' | ||
OGMIOS_URL: 'ws://cardano-node-ogmios:1340' | ||
|
||
- name: Wait for some epochs | ||
run: | | ||
yarn workspace @cardano-sdk/e2e wait-for-network | ||
env: | ||
FAUCET_PROVIDER: 'cardano-wallet' | ||
FAUCET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:8090/v2","mnemonic":"fire method repair aware foot tray accuse brother popular olive find account sick rocket next"}' | ||
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer' | ||
|
||
- name: 🔬 Test - e2e - wallet | long-running | ||
run: | | ||
yarn workspace @cardano-sdk/e2e test:wallet | ||
yarn workspace @cardano-sdk/e2e test:long-running | ||
env: | ||
FAUCET_PROVIDER: 'cardano-wallet' | ||
FAUCET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:8090/v2","mnemonic":"fire method repair aware foot tray accuse brother popular olive find account sick rocket next"}' | ||
KEY_MANAGEMENT_PROVIDER: 'inMemory' | ||
KEY_MANAGEMENT_PARAMS: '{"accountIndex": 0, "networkId": 0, "password":"some_password","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}' | ||
ASSET_PROVIDER: 'http' | ||
ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/asset"}' | ||
CHAIN_HISTORY_PROVIDER: 'http' | ||
CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/chain-history"}' | ||
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer' | ||
NETWORK_INFO_PROVIDER: 'http' | ||
NETWORK_INFO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/network-info"}' | ||
OGMIOS_SERVER_URL: 'ws://localhost:1340/' | ||
REWARDS_PROVIDER: 'http' | ||
REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/rewards"}' | ||
TX_SUBMIT_PROVIDER: 'http' | ||
TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/tx-submit"}' | ||
UTXO_PROVIDER: 'http' | ||
UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/utxo"}' | ||
STAKE_POOL_PROVIDER: 'http' | ||
STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/stake-pool"}' |
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
nodeLinker: node-modules | ||
|
||
packageExtensions: | ||
ts-node@*: | ||
peerDependenciesMeta: | ||
"@types/node": | ||
optional: true | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
- path: .yarn/plugins/yarn-plugin-nixify.cjs | ||
spec: "https://raw.githubusercontent.com/stephank/yarn-plugin-nixify/main/dist/yarn-plugin-nixify.js" | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.1.cjs | ||
|
||
packageExtensions: | ||
ts-node@*: | ||
peerDependenciesMeta: | ||
"@types/node": | ||
"optional": 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
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.