Skip to content

Commit e816298

Browse files
committed
fixup! test: update deployed envs e2e test to latest sdk version
1 parent c59f1fe commit e816298

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/test-deploy-e2e.yaml

+19-11
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@ on:
44
workflow_dispatch:
55
inputs:
66
environment:
7-
description: 'Environment to run e2e tests against'
7+
description: 'Target environment'
88
type: choice
99
required: true
10-
default: 'dev-preprod'
1110
options:
1211
- live-preprod
1312
- live-preview
1413
- dev-preprod
1514
- dev-preview
1615
- staging-preprod
16+
network:
17+
description: 'Target network'
18+
type: choice
19+
required: true
20+
options:
21+
- 'preview'
22+
- 'preprod'
23+
- 'sanchonet'
24+
- 'mainnet'
1725
cluster:
18-
description: 'Specific cluster to run e2e tests against'
26+
description: 'Target cluster'
1927
type: choice
2028
required: true
21-
default: 'any'
2229
options:
2330
- any
2431
- eu-central-1
@@ -27,7 +34,6 @@ on:
2734
description: 'Log level'
2835
type: choice
2936
required: true
30-
default: 'fatal'
3137
options:
3238
- fatal
3339
- error
@@ -36,10 +42,6 @@ on:
3642
- debug
3743
- trace
3844

39-
env:
40-
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
41-
TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }}
42-
4345
jobs:
4446
build_and_test:
4547
strategy:
@@ -52,10 +54,16 @@ jobs:
5254

5355
- name: Generate .env file
5456
working-directory: ./packages/e2e/
57+
env:
58+
CLUSTER: ${{ inputs.cluster }}
59+
ENVIRONMENT: ${{ inputs.environment }}
60+
MNEMONIC: ${{ secrets.MNEMONIC }}
61+
NETWORK: ${{ inputs.network }}
5562
run: |
5663
if [[ "${{ inputs.environment }}" == *"preprod"* ]]; then networkMagic=1; else networkMagic=2; fi
5764
./src/scripts/generate-dotenv.sh ${{ inputs.environment }} ${{ inputs.cluster }}
5865
echo "KEY_MANAGEMENT_PARAMS='$(jq --argjson networkMagic $networkMagic --arg mnemonic "${{ secrets.MNEMONIC }}" <<< '{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 0}, "passphrase":"some_passphrase","mnemonic":"mnemonics"}' '.mnemonic=$mnemonic | .chainId.networkMagic=$networkMagic')'" >> .env
66+
cat .env
5967
6068
- name: 🧰 Setup Node.js
6169
uses: actions/setup-node@v3
@@ -64,6 +72,7 @@ jobs:
6472

6573
- name: 🔨 Build
6674
run: |
75+
false
6776
yarn install --immutable --inline-builds --mode=skip-build
6877
yarn build:cjs
6978
docker build --no-cache .
@@ -72,6 +81,5 @@ jobs:
7281

7382
- name: 🔬 Test - e2e - wallet
7483
run: |
75-
false
76-
# TL_DEPTH=0 TL_LEVEL=${{ inputs.level }} yarn workspace @cardano-sdk/e2e test:wallet-real-ada
84+
TL_DEPTH=0 TL_LEVEL=${{ inputs.level }} yarn workspace @cardano-sdk/e2e test:wallet-real-ada
7785
shell: bash

0 commit comments

Comments
 (0)