Skip to content

Commit

Permalink
fixup! test: update deployed envs e2e test to latest sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Oct 4, 2024
1 parent c59f1fe commit e816298
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/test-deploy-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,28 @@ on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to run e2e tests against'
description: 'Target environment'
type: choice
required: true
default: 'dev-preprod'
options:
- live-preprod
- live-preview
- dev-preprod
- dev-preview
- staging-preprod
network:
description: 'Target network'
type: choice
required: true
options:
- 'preview'
- 'preprod'
- 'sanchonet'
- 'mainnet'
cluster:
description: 'Specific cluster to run e2e tests against'
description: 'Target cluster'
type: choice
required: true
default: 'any'
options:
- any
- eu-central-1
Expand All @@ -27,7 +34,6 @@ on:
description: 'Log level'
type: choice
required: true
default: 'fatal'
options:
- fatal
- error
Expand All @@ -36,10 +42,6 @@ on:
- debug
- trace

env:
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }}

jobs:
build_and_test:
strategy:
Expand All @@ -52,10 +54,16 @@ jobs:

- name: Generate .env file
working-directory: ./packages/e2e/
env:
CLUSTER: ${{ inputs.cluster }}
ENVIRONMENT: ${{ inputs.environment }}
MNEMONIC: ${{ secrets.MNEMONIC }}
NETWORK: ${{ inputs.network }}
run: |
if [[ "${{ inputs.environment }}" == *"preprod"* ]]; then networkMagic=1; else networkMagic=2; fi
./src/scripts/generate-dotenv.sh ${{ inputs.environment }} ${{ inputs.cluster }}
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
cat .env
- name: 🧰 Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -64,6 +72,7 @@ jobs:

- name: 🔨 Build
run: |
false
yarn install --immutable --inline-builds --mode=skip-build
yarn build:cjs
docker build --no-cache .
Expand All @@ -72,6 +81,5 @@ jobs:

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

0 comments on commit e816298

Please sign in to comment.