Skip to content

Commit e0696c3

Browse files
committed
chore(e2e): streamline health checks and remove redundant environment variable validation
1 parent 9b3897d commit e0696c3

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

.github/workflows/e2e.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,38 +54,14 @@ jobs:
5454
- name: Build project
5555
run: bun run build
5656

57-
- name: Validate environment variables
58-
run: |
59-
echo "Checking environment variables..."
60-
if [ -z "$LIVE_MASTER_ACCOUNT" ]; then
61-
echo "❌ LIVE_MASTER_ACCOUNT is not set"
62-
exit 1
63-
fi
64-
if [ -z "$LOCAL_MASTER_ACCOUNT" ]; then
65-
echo "❌ LOCAL_MASTER_ACCOUNT is not set"
66-
exit 1
67-
fi
68-
echo "✅ Required environment variables are set"
69-
70-
# Validate private key format (should be 0x followed by 64 hex chars)
71-
if [[ ! "$LIVE_MASTER_ACCOUNT" =~ ^0x[a-fA-F0-9]{64}$ ]]; then
72-
echo "❌ LIVE_MASTER_ACCOUNT is not in correct format (should be 0x followed by 64 hex characters)"
73-
exit 1
74-
fi
75-
if [[ ! "$LOCAL_MASTER_ACCOUNT" =~ ^0x[a-fA-F0-9]{64}$ ]]; then
76-
echo "❌ LOCAL_MASTER_ACCOUNT is not in correct format (should be 0x followed by 64 hex characters)"
77-
exit 1
78-
fi
79-
echo "✅ Private key formats are valid"
80-
8157
- name: Run health check for naga-dev
8258
run: NETWORK=naga-dev bun run test:e2e pkpSign
8359
timeout-minutes: 10
8460

85-
- name: Run health check for naga-staging
86-
run: NETWORK=naga-staging bun run test:e2e pkpSign
61+
- name: Run health check for naga-test
62+
run: NETWORK=naga-test bun run test:e2e pkpSign
8763
timeout-minutes: 10
8864

89-
- name: Run health check for naga-local
90-
run: NETWORK=naga-local bun run test:e2e pkpSign
65+
- name: Run health check for naga-staging
66+
run: NETWORK=naga-staging bun run test:e2e pkpSign
9167
timeout-minutes: 10

0 commit comments

Comments
 (0)