diff --git a/.github/workflows/test-deploy-e2e.yaml b/.github/workflows/test-deploy-e2e.yaml index d5173eb1dce..8af53821667 100644 --- a/.github/workflows/test-deploy-e2e.yaml +++ b/.github/workflows/test-deploy-e2e.yaml @@ -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 @@ -27,7 +34,6 @@ on: description: 'Log level' type: choice required: true - default: 'fatal' options: - fatal - error @@ -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: @@ -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 @@ -64,6 +72,7 @@ jobs: - name: 🔨 Build run: | + false yarn install --immutable --inline-builds --mode=skip-build yarn build:cjs docker build --no-cache . @@ -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